update lsp diagnostics to use internal functions
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user