LazyVim/lua/plugins/none-ls.lua
Michel 3289baffef feat(LazyVim): update to 7.0.1
Use none-ls instead of null-ls
2023-09-29 18:34:56 +02:00

19 lines
547 B
Lua

return {
"nvimtools/none-ls.nvim",
event = { "BufReadPre", "BufNewFile" },
dependencies = { "mason.nvim" },
opts = function()
local nls = require("null-ls")
return {
root_dir = require("null-ls.utils").root_pattern(".null-ls-root", ".neoconf.json", "Makefile", ".git"),
sources = {
-- nls.builtins.formatting.fish_indent,
-- nls.builtins.diagnostics.fish,
nls.builtins.formatting.stylua,
nls.builtins.formatting.shfmt,
-- nls.builtins.diagnostics.flake8,
},
}
end,
}