diff --git a/lua/custom/configs/lspconfig.lua b/lua/custom/configs/lspconfig.lua index 7498a2a..bb70d1a 100644 --- a/lua/custom/configs/lspconfig.lua +++ b/lua/custom/configs/lspconfig.lua @@ -10,7 +10,6 @@ local servers = { "cssls", "tsserver", "clangd", - "pyright", "bashls", "cmake", "yamlls", @@ -29,6 +28,7 @@ local server_with_settings = { -- "textlsp", "ltex", "rust_analyzer", + "basedpyright", } for _, lsp in ipairs(server_with_settings) do diff --git a/lua/custom/configs/lspsettings.lua b/lua/custom/configs/lspsettings.lua index f1450ff..13286fb 100644 --- a/lua/custom/configs/lspsettings.lua +++ b/lua/custom/configs/lspsettings.lua @@ -3,6 +3,23 @@ local capabilities = require("plugins.configs.lspconfig").capabilities local M = {} +M.basedpyright = { + on_attach = on_attach, + capabilities = capabilities, + root_dir = vim.loop.cwd, + flags = { debounce_text_changes = 300 }, + single_file_support = true, + settings = { + python = { + analysis = { + autoSearchPaths = true, + diagnosticMode = "openFilesOnly", + useLibraryCodeForTypes = true, + typeCheckingMode = "basic", + }, + }, + }, +} M.rust_analyzer = { on_attach = on_attach, capabilities = capabilities, diff --git a/lua/custom/configs/overrides.lua b/lua/custom/configs/overrides.lua index 5226d76..7e0c3cf 100644 --- a/lua/custom/configs/overrides.lua +++ b/lua/custom/configs/overrides.lua @@ -43,7 +43,7 @@ M.mason = { "cmake-language-server", "rust-analyzer", "taplo", - "pyright", + "basedpyright", "shellcheck", "bash-language-server", "ltex-ls", diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index 3dd7802..46fa878 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -812,6 +812,7 @@ local plugins = { end, dependencies = { "mfussenegger/nvim-dap", + "nvim-neotest/nvim-nio", }, config = function(_, opts) local dap = require "dap" diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index d6cfbf5..bf931f8 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -364,3 +364,6 @@ UITPS PV UITPA Glänzer +postgres +sqlite +REPL