This commit is contained in:
Christoph J. Scherr 2024-07-03 13:45:25 +02:00
commit 0cacd59361
5 changed files with 23 additions and 2 deletions

View File

@ -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

View File

@ -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,

View File

@ -43,7 +43,7 @@ M.mason = {
"cmake-language-server",
"rust-analyzer",
"taplo",
"pyright",
"basedpyright",
"shellcheck",
"bash-language-server",
"ltex-ls",

View File

@ -812,6 +812,7 @@ local plugins = {
end,
dependencies = {
"mfussenegger/nvim-dap",
"nvim-neotest/nvim-nio",
},
config = function(_, opts)
local dap = require "dap"

View File

@ -364,3 +364,6 @@ UITPS
PV
UITPA
Glänzer
postgres
sqlite
REPL