LSP: Trying ty instead of pyright

This commit is contained in:
t0xa 2026-03-16 11:15:38 +03:00
parent ca59b47f48
commit ca3b32d261
3 changed files with 19 additions and 20 deletions

View file

@ -31,8 +31,7 @@ cmp.setup {
sources = {
{ name = "luasnip" },
{ name = "nvim_lsp" },
{ name = "path" },
{ name = "buffer" },
{ name = "path" }
},
mapping = {
["<C-n>"] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert },

View file

@ -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 = {

View file

@ -5,8 +5,6 @@ require 'nvim-treesitter.configs'.setup {
"vim",
"vimdoc",
"query",
"elixir",
"heex",
"javascript",
"html",
"go",