mirror of https://github.com/wlcx/home.git
vim: replace pylsp with basedpyright
This commit is contained in:
parent
c38a6da542
commit
cc24d247b1
|
@ -49,18 +49,7 @@ require'lspconfig'.gopls.setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
}
|
||||||
require'lspconfig'.pylsp.setup{
|
require'lspconfig'.basedpyright.setup{}
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = capabilities,
|
|
||||||
handlers = {
|
|
||||||
["textDocument/publishDiagnostics"] = vim.lsp.with(
|
|
||||||
vim.lsp.diagnostic.on_publish_diagnostics, {
|
|
||||||
-- Disable virtual_text
|
|
||||||
virtual_text = false
|
|
||||||
}
|
|
||||||
),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
require'lspconfig'.nil_ls.setup{
|
require'lspconfig'.nil_ls.setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
|
Loading…
Reference in New Issue