summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/null-ls/linters.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/lsp/null-ls/linters.lua')
-rw-r--r--.config/nvim/lua/lsp/null-ls/linters.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/lua/lsp/null-ls/linters.lua b/.config/nvim/lua/lsp/null-ls/linters.lua
index a0675a7..a4eaa89 100644
--- a/.config/nvim/lua/lsp/null-ls/linters.lua
+++ b/.config/nvim/lua/lsp/null-ls/linters.lua
@@ -66,7 +66,7 @@ function M.list_configured(linter_configs)
end
function M.setup(filetype, option)
- if linters_by_ft[filetype] and not option.force_reload then
+ if not options.lang[filetype] or (linters_by_ft[filetype] and not option.force_reload) then
return
end