dotfiles/nvim/lua/plugins/none-ls.lua

22 lines
887 B
Lua
Raw Normal View History

2024-01-18 23:52:35 +01:00
return {
"nvimtools/none-ls.nvim",
dependencies = { "mason.nvim", "nvim-lua/plenary.nvim" },
config = function()
local null_ls = require("null-ls")
null_ls.setup({
root_dir = require("null-ls.utils").root_pattern(".git", "Makefile", "CMakeLists.txt", "build/", "meson.build"),
sources = {
2024-02-08 15:15:47 +01:00
-- null_ls.builtins.completion.spell,
-- null_ls.builtins.code_actions.proselint,
-- null_ls.builtins.diagnostics.proselint,
-- null_ls.builtins.diagnostics.codespell,
2024-01-18 23:52:35 +01:00
null_ls.builtins.diagnostics.shellcheck,
null_ls.builtins.formatting.shellharden,
null_ls.builtins.formatting.shfmt,
-- null_ls.builtins.diagnostics.cppcheck,
2024-02-08 15:15:47 +01:00
-- null_ls.builtins.diagnostics.selene
2024-01-18 23:52:35 +01:00
}
})
end,
}