From f37912375ab6cbe5fd39edcc1dac6c79a6666b10 Mon Sep 17 00:00:00 2001 From: PattyC Date: Tue, 25 Feb 2025 21:19:39 +0930 Subject: [PATCH] feat: switch back to basedpyright --- nvim/lua/core/langs/python.lua | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/nvim/lua/core/langs/python.lua b/nvim/lua/core/langs/python.lua index 80510bb..3cfdd3f 100644 --- a/nvim/lua/core/langs/python.lua +++ b/nvim/lua/core/langs/python.lua @@ -10,8 +10,20 @@ local M = { lsp_servers = { { - lsp_name = "pyright", - lsp_settings = {}, + lsp_name = "basedpyright", + lsp_settings = { + basedpyright = { + analysis = { + diagnosticMode = "workspace", -- openFilesOnly | workspace + inlayHints = { + callArgumentNames = true, + }, + autoImportCompletions = true, + autoSearchPaths = true, + }, + disableOrganizeImports = true, + }, + }, }, { lsp_name = "ruff",