mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
update formatters and linters
This commit is contained in:
parent
ab661fb3b8
commit
34d442184e
1 changed files with 6 additions and 2 deletions
|
@ -35,10 +35,11 @@ local shfmt = {
|
|||
}
|
||||
|
||||
|
||||
|
||||
require"lspconfig".efm.setup {
|
||||
-- init_options = {initializationOptions},
|
||||
init_options = {documentFormatting = true, codeAction = false},
|
||||
filetypes = {"lua", "python", "javascriptreact", "javascript", "sh"},
|
||||
filetypes = {"lua", "python", "javascriptreact", "javascript", "sh", "html", "css", "json"},
|
||||
settings = {
|
||||
rootMarkers = {".git/"},
|
||||
languages = {
|
||||
|
@ -46,7 +47,10 @@ require"lspconfig".efm.setup {
|
|||
python = {isort, yapf},
|
||||
javascriptreact = {prettier, eslint},
|
||||
javascript = {prettier, eslint},
|
||||
sh = {shellcheck, shfmt}
|
||||
sh = {shellcheck, shfmt},
|
||||
html = {prettier},
|
||||
css = {prettier},
|
||||
json = {prettier}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue