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 = {
|
||||
{ name = "luasnip" },
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "path" },
|
||||
{ name = "buffer" },
|
||||
{ name = "path" }
|
||||
},
|
||||
mapping = {
|
||||
["<C-n>"] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert },
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@ require 'nvim-treesitter.configs'.setup {
|
|||
"vim",
|
||||
"vimdoc",
|
||||
"query",
|
||||
"elixir",
|
||||
"heex",
|
||||
"javascript",
|
||||
"html",
|
||||
"go",
|
||||
|
|
|
|||
Loading…
Reference in a new issue