LSP: Rollback to pyright

This commit is contained in:
t0xa 2026-04-02 22:41:49 +03:00
parent ca3b32d261
commit 92e6a5dc1f

View file

@ -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)