From 22dde69f49966040311f6b9d36876f8a23aa80dd Mon Sep 17 00:00:00 2001 From: newbieQQ Date: Sat, 24 Aug 2024 01:14:49 +0800 Subject: [PATCH] first push --- lua/lsp/basedpyright.lua | 11 +++++++++++ lua/plugs/nvim-lspconfig.lua | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lua/lsp/basedpyright.lua b/lua/lsp/basedpyright.lua index d0898f9..3be769f 100644 --- a/lua/lsp/basedpyright.lua +++ b/lua/lsp/basedpyright.lua @@ -1,4 +1,15 @@ return { + -- capabilities = require("cmp_nvim_lsp").default_capabilities(), + settings = { + basedpyright = { + analysis = { + autoSearchPaths = true, + diagnosticMode = "openFilesOnly", + useLibraryCodeForTypes = true, + typeCheckingMode = "standard" + }, + }, + }, on_attach = function() G.api.nvim_create_user_command('R', function() G.cmd [[set splitbelow]] diff --git a/lua/plugs/nvim-lspconfig.lua b/lua/plugs/nvim-lspconfig.lua index 9d18915..957a986 100644 --- a/lua/plugs/nvim-lspconfig.lua +++ b/lua/plugs/nvim-lspconfig.lua @@ -51,7 +51,7 @@ return { require("mason-lspconfig").setup({ ensure_installed = { "bashls", - "basedpyright", + -- "basedpyright", "lua_ls", "jsonls", "yamlls",