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