blob: 535bafb9548fe32ac3ecb97a50589d1a05ea4375 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
-- 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,
nls.builtins.formatting.prettier,
})
end,
}
|