blob: 75368c5840a68a8fcf696d04d5ef3322c12b247e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
-- ripped from https://www.lazyvim.org/extras/lsp/none-ls
return {
"nvimtools/none-ls.nvim",
version = "*",
opts = function(_, opts)
local nls = require("null-ls")
opts.root_dir = opts.root_dir
or require("null-ls.utils").root_pattern(".null-ls-root", ".neoconf.json", "Makefile", ".git")
opts.sources = vim.list_extend(opts.sources or {}, {
nls.builtins.formatting.alejandra,
})
end,
}
|