From ca3b32d261d2a1b8be3fb97e39244532b1aa3d5d Mon Sep 17 00:00:00 2001 From: t0xa Date: Mon, 16 Mar 2026 11:15:38 +0300 Subject: [PATCH] LSP: Trying ty instead of pyright --- lua/custom/completion.lua | 3 +-- lua/custom/lsp.lua | 34 ++++++++++++++++++---------------- lua/custom/treesitter.lua | 2 -- 3 files changed, 19 insertions(+), 20 deletions(-) diff --git a/lua/custom/completion.lua b/lua/custom/completion.lua index f941358..1561b94 100644 --- a/lua/custom/completion.lua +++ b/lua/custom/completion.lua @@ -31,8 +31,7 @@ cmp.setup { sources = { { name = "luasnip" }, { name = "nvim_lsp" }, - { name = "path" }, - { name = "buffer" }, + { name = "path" } }, mapping = { [""] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert }, diff --git a/lua/custom/lsp.lua b/lua/custom/lsp.lua index b2e71ad..0a57eed 100644 --- a/lua/custom/lsp.lua +++ b/lua/custom/lsp.lua @@ -10,6 +10,8 @@ end local servers = { + ty = { + }, gopls = { settings = { gopls = { @@ -33,22 +35,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 = { diff --git a/lua/custom/treesitter.lua b/lua/custom/treesitter.lua index 6ab4f17..fa58260 100644 --- a/lua/custom/treesitter.lua +++ b/lua/custom/treesitter.lua @@ -5,8 +5,6 @@ require 'nvim-treesitter.configs'.setup { "vim", "vimdoc", "query", - "elixir", - "heex", "javascript", "html", "go",