LSP: Rollback to pyright
This commit is contained in:
parent
ca3b32d261
commit
92e6a5dc1f
1 changed files with 25 additions and 18 deletions
|
|
@ -10,8 +10,6 @@ end
|
|||
|
||||
|
||||
local servers = {
|
||||
ty = {
|
||||
},
|
||||
gopls = {
|
||||
settings = {
|
||||
gopls = {
|
||||
|
|
@ -35,22 +33,22 @@ local servers = {
|
|||
},
|
||||
},
|
||||
},
|
||||
-- pyright = {
|
||||
-- settings = {
|
||||
-- pyright = {
|
||||
-- -- Using Ruff's import organizer
|
||||
-- disableOrganizeImports = true,
|
||||
-- },
|
||||
-- python = {
|
||||
-- analysis = {
|
||||
-- -- Ignore all files for analysis to exclusively use Ruff for linting
|
||||
-- -- ignore = { "*" },
|
||||
-- diagnosticMode = "off",
|
||||
-- -- typeCheckingMode = "off",
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
pyright = {
|
||||
settings = {
|
||||
pyright = {
|
||||
-- Using Ruff's import organizer
|
||||
disableOrganizeImports = true,
|
||||
},
|
||||
python = {
|
||||
analysis = {
|
||||
-- Ignore all files for analysis to exclusively use Ruff for linting
|
||||
-- ignore = { "*" },
|
||||
diagnosticMode = "off",
|
||||
-- typeCheckingMode = "off",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
lua_ls = {
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
|
|
@ -72,6 +70,15 @@ local servers = {
|
|||
"--offset-encoding=utf-16",
|
||||
},
|
||||
},
|
||||
html = {
|
||||
filetypes = { "html", "gohtml" },
|
||||
},
|
||||
eslint = {
|
||||
filetypes = { "javascript", "typescript", "html", "gohtml" },
|
||||
},
|
||||
ts_ls = {
|
||||
filetypes = { "javascript", "typescript" },
|
||||
},
|
||||
}
|
||||
|
||||
local servers_to_install = vim.tbl_filter(function(key)
|
||||
|
|
|
|||
Loading…
Reference in a new issue