fix js json issues (tsserver confilct?)
This commit is contained in:
parent
d27b3caa9c
commit
d6a71c92d4
|
@ -66,7 +66,7 @@ end
|
|||
require "lspconfig".efm.setup {
|
||||
init_options = {documentFormatting = true},
|
||||
on_attach = on_attach_efm,
|
||||
filetypes = {"javascript", "typescript", "json", "sh", "python", "lua"},
|
||||
filetypes = {"javascript", "json", "sh", "python", "lua"},
|
||||
root_dir = function(fname)
|
||||
return util.root_pattern("tsconfig.json")(fname) or
|
||||
util.root_pattern(".eslintrc.js", ".git")(fname);
|
||||
|
@ -75,11 +75,10 @@ require "lspconfig".efm.setup {
|
|||
rootMarkers = {".eslintrc.js", ".git/"},
|
||||
languages = {
|
||||
javascript = {eslint},
|
||||
typescript = {eslint},
|
||||
json = {jq, fixjson},
|
||||
python = {flake8, black},
|
||||
sh = {shellcheck},
|
||||
lua = {luaformat}
|
||||
json = {jq, fixjson},
|
||||
python = {flake8, black},
|
||||
sh = {shellcheck},
|
||||
lua = {luaformat}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +104,7 @@ local servers = {
|
|||
-- npm i -g stylelint-lsp
|
||||
'stylelint_lsp',
|
||||
-- https://github.com/neovim/nvim-lspconfig/wiki
|
||||
'tailwindcss',
|
||||
-- 'tailwindcss',
|
||||
-- npm install -g typescript typescript-language-server
|
||||
'tsserver',
|
||||
-- npm install -g vim-language-server
|
||||
|
|
Loading…
Reference in New Issue