From 92e6a5dc1fddabc4c24f02be655e2629dd66bad4 Mon Sep 17 00:00:00 2001 From: t0xa Date: Thu, 2 Apr 2026 22:41:49 +0300 Subject: [PATCH] LSP: Rollback to pyright --- lua/custom/lsp.lua | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/lua/custom/lsp.lua b/lua/custom/lsp.lua index 0a57eed..872480c 100644 --- a/lua/custom/lsp.lua +++ b/lua/custom/lsp.lua @@ -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)