2021-03-15 23:11:39 -04:00
|
|
|
-- npm i -g pyright
|
2021-03-23 18:55:12 -04:00
|
|
|
require'lspconfig'.pyright.setup {
|
|
|
|
cmd = {DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver", "--stdio"},
|
2021-03-27 03:01:24 -04:00
|
|
|
on_attach = require'lsp'.common_on_attach,
|
2021-03-27 03:49:27 -04:00
|
|
|
handlers = {
|
|
|
|
["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
|
|
|
|
virtual_text = O.python.diagnostics.virtual_text,
|
|
|
|
signs = O.python.diagnostics.signs,
|
|
|
|
underline = O.python.diagnostics.underline,
|
|
|
|
update_in_insert = true
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
2021-03-17 20:32:52 -04:00
|
|
|
}
|