LSP: Trying ty instead of pyright
This commit is contained in:
parent
ca59b47f48
commit
ca3b32d261
3 changed files with 19 additions and 20 deletions
|
|
@ -31,8 +31,7 @@ cmp.setup {
|
||||||
sources = {
|
sources = {
|
||||||
{ name = "luasnip" },
|
{ name = "luasnip" },
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp" },
|
||||||
{ name = "path" },
|
{ name = "path" }
|
||||||
{ name = "buffer" },
|
|
||||||
},
|
},
|
||||||
mapping = {
|
mapping = {
|
||||||
["<C-n>"] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert },
|
["<C-n>"] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert },
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ end
|
||||||
|
|
||||||
|
|
||||||
local servers = {
|
local servers = {
|
||||||
|
ty = {
|
||||||
|
},
|
||||||
gopls = {
|
gopls = {
|
||||||
settings = {
|
settings = {
|
||||||
gopls = {
|
gopls = {
|
||||||
|
|
@ -33,22 +35,22 @@ local servers = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pyright = {
|
-- pyright = {
|
||||||
settings = {
|
-- settings = {
|
||||||
pyright = {
|
-- pyright = {
|
||||||
-- Using Ruff's import organizer
|
-- -- Using Ruff's import organizer
|
||||||
disableOrganizeImports = true,
|
-- disableOrganizeImports = true,
|
||||||
},
|
-- },
|
||||||
python = {
|
-- python = {
|
||||||
analysis = {
|
-- analysis = {
|
||||||
-- Ignore all files for analysis to exclusively use Ruff for linting
|
-- -- Ignore all files for analysis to exclusively use Ruff for linting
|
||||||
-- ignore = { "*" },
|
-- -- ignore = { "*" },
|
||||||
diagnosticMode = "off",
|
-- diagnosticMode = "off",
|
||||||
-- typeCheckingMode = "off",
|
-- -- typeCheckingMode = "off",
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ require 'nvim-treesitter.configs'.setup {
|
||||||
"vim",
|
"vim",
|
||||||
"vimdoc",
|
"vimdoc",
|
||||||
"query",
|
"query",
|
||||||
"elixir",
|
|
||||||
"heex",
|
|
||||||
"javascript",
|
"javascript",
|
||||||
"html",
|
"html",
|
||||||
"go",
|
"go",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue