nvim lsp pyright added

This commit is contained in:
Henrik Bakken
2025-09-18 11:52:05 +02:00
parent 32016780c4
commit 0e1ed53ff7
+22
View File
@@ -449,6 +449,27 @@ local function makespec_lspconfig()
}, },
}, },
}) })
vim.lsp.config("pyrefly", {
cmd = { "pyrefly", "lsp" },
filetypes = { "python" },
root_dir = rootdirfix(pyroot),
})
vim.lsp.config("pylsp", {
filetypes = { "python" },
root_dir = rootdirfix(pyroot),
settings = {
pylsp = {
plugins = {
pylsp_mypy = {
enabled = true,
dmypy = true,
},
pycodestyle = { enabled = false },
mccabe = { enabled = false },
},
},
},
})
vim.lsp.config("basedpyright", { vim.lsp.config("basedpyright", {
cmd = { "basedpyright-langserver", "--stdio", "--threads", "20" }, cmd = { "basedpyright-langserver", "--stdio", "--threads", "20" },
filetypes = { "python" }, filetypes = { "python" },
@@ -514,6 +535,7 @@ local function makespec_lspconfig()
vim.lsp.enable("html") vim.lsp.enable("html")
vim.lsp.enable("lua_ls") vim.lsp.enable("lua_ls")
vim.lsp.enable("nushell") vim.lsp.enable("nushell")
-- vim.lsp.enable("pyrefly")
vim.lsp.enable("pylsp") vim.lsp.enable("pylsp")
vim.lsp.enable("basedpyright") vim.lsp.enable("basedpyright")
vim.lsp.enable("tinymist") vim.lsp.enable("tinymist")