basedpyright -> pyright

This commit is contained in:
Henrik Bakken
2025-03-26 11:27:51 +01:00
parent 275370eee8
commit 1768faf984
+6 -3
View File
@@ -299,8 +299,8 @@ local function lspsetup()
}, },
} }
vim.lsp.enable("lua_ls") vim.lsp.enable("lua_ls")
vim.lsp.config["basedpyright"] = { vim.lsp.config["pyright"] = {
cmd = { "basedpyright-langserver", "--stdio" }, cmd = { "pyright-langserver", "--stdio", "--threads", "20" },
filetypes = { "python" }, filetypes = { "python" },
root_markers = { root_markers = {
"pyproject.toml", "pyproject.toml",
@@ -313,14 +313,17 @@ local function lspsetup()
settings = { settings = {
python = { python = {
analysis = { analysis = {
-- logLevel = "Trace",
autoImportCompletions = false, autoImportCompletions = false,
diagnosticMode = "openFilesOnly", diagnosticMode = "openFilesOnly",
useLibraryCodeForTypes = false, useLibraryCodeForTypes = false,
-- logTypeEvaluationTime = true,
-- typeEvaluationTimeThreshold = 5000,
}, },
}, },
}, },
} }
vim.lsp.enable("basedpyright") vim.lsp.enable("pyright")
vim.lsp.config["html"] = { vim.lsp.config["html"] = {
cmd = { "vscode-html-language-server", "--stdio" }, cmd = { "vscode-html-language-server", "--stdio" },
filetypes = { "html" }, filetypes = { "html" },