mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-29 14:28:18 +02:00
fix: register null-ls providers per filetype (#1709)
This commit is contained in:
parent
68d2678af3
commit
f4899e3165
3 changed files with 21 additions and 15 deletions
|
@ -13,12 +13,12 @@ function M:setup()
|
|||
|
||||
null_ls.config()
|
||||
require("lspconfig")["null-ls"].setup(lvim.lsp.null_ls.setup)
|
||||
for _, filetype in pairs(lvim.lang) do
|
||||
if filetype.formatters then
|
||||
formatters.setup(filetype.formatters, filetype)
|
||||
for filetype, config in pairs(lvim.lang) do
|
||||
if not vim.tbl_isempty(config.formatters) then
|
||||
formatters.setup(config.formatters, filetype)
|
||||
end
|
||||
if filetype.linters then
|
||||
linters.setup(filetype.linters, filetype)
|
||||
if not vim.tbl_isempty(config.linters) then
|
||||
linters.setup(config.linters, filetype)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue