update lsp diagnostics to use internal functions

This commit is contained in:
kyasuda
2025-05-02 10:14:59 -07:00
parent a8f250f96b
commit ab352ba2a9
5 changed files with 47 additions and 20 deletions

View File

@@ -5,7 +5,8 @@ return {
vim.notify = require("notify")
local servers = {
"bashls",
"jedi_language_server",
-- "jedi_language_server",
"basedpyright",
"jsonls",
-- "yamlls",
"vimls",
@@ -75,6 +76,19 @@ return {
},
handlers = {},
})
elseif lsp == "basedpyright" then
vim.lsp.enable(lsp)
vim.lsp.config(lsp, {
analysis = {
autoSearchPaths = true,
diagnosticMode = "openFilesOnly",
useLibraryCodeForTypes = true,
},
diagnosticMode = "openFilesOnly",
inlayHints = {
callArgumentNames = true,
},
})
else
vim.lsp.enable(lsp)
-- vim.lsp.config(lsp, {