diff options
Diffstat (limited to 'lua/lsp/null-ls')
-rw-r--r-- | lua/lsp/null-ls/formatters.lua | 2 | ||||
-rw-r--r-- | lua/lsp/null-ls/linters.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lua/lsp/null-ls/formatters.lua b/lua/lsp/null-ls/formatters.lua index d6ede29d..cae1fa7d 100644 --- a/lua/lsp/null-ls/formatters.lua +++ b/lua/lsp/null-ls/formatters.lua @@ -63,7 +63,7 @@ function M.list_configured(formatter_configs) end function M.setup(filetype, options) - if formatters_by_ft[filetype] and not options.force_reload then + if not lvim.lang[filetype] or (formatters_by_ft[filetype] and not options.force_reload) then return end diff --git a/lua/lsp/null-ls/linters.lua b/lua/lsp/null-ls/linters.lua index 64d2db4a..b449a4f2 100644 --- a/lua/lsp/null-ls/linters.lua +++ b/lua/lsp/null-ls/linters.lua @@ -63,7 +63,7 @@ function M.list_configured(linter_configs) end function M.setup(filetype, options) - if linters_by_ft[filetype] and not options.force_reload then + if not lvim.lang[filetype] or (linters_by_ft[filetype] and not options.force_reload) then return end |