mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Can it be this easy to make nvim stuff just work? Do I really just need to pull the files in with Home Manager? It seems so, so long as nvim knows about gcc :) There is also a related side of tmux here because it all ties together.
23 lines
686 B
Lua
23 lines
686 B
Lua
return {
|
|
"nvimtools/none-ls.nvim",
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
config = function()
|
|
local null_ls = require("null-ls")
|
|
|
|
null_ls.setup({
|
|
sources = {
|
|
null_ls.builtins.completion.spell,
|
|
null_ls.builtins.diagnostics.puppet_lint,
|
|
null_ls.builtins.diagnostics.rubocop,
|
|
null_ls.builtins.diagnostics.ruff,
|
|
null_ls.builtins.formatting.prettier,
|
|
null_ls.builtins.formatting.puppet_lint,
|
|
null_ls.builtins.formatting.rubocop,
|
|
null_ls.builtins.formatting.ruff_format,
|
|
null_ls.builtins.formatting.stylua,
|
|
},
|
|
})
|
|
|
|
vim.keymap.set("n", "<leader>gf", vim.lsp.buf.format, {})
|
|
end,
|
|
}
|