mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-22 10:18:28 +02:00
[Bugfix] fix formatter/linter nil issue (#1353)
* fix formatter/linter issue for undefined lang/filetypes * revrese the order
This commit is contained in:
parent
0bf6fd68c6
commit
1f45d1531d
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue