* fix formatter/linter issue for undefined lang/filetypes * revrese the order
@@ -1189,7 +1189,7 @@ lvim.lang = {
},
vim = {
formatters = {},
- linters = { "" },
+ linters = {},
lsp = {
provider = "vimls",
setup = {
@@ -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
@@ -63,7 +63,7 @@ function M.list_configured(linter_configs)
- 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