diff options
author | Chris <[email protected]> | 2021-03-27 03:49:27 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2021-03-27 03:49:27 -0400 |
commit | e6e7eafdaf526b1d75c5dde2f2f91bf53125b20e (patch) | |
tree | 23c81311e0a96a8b0ca0b89d0f30be31e95866ed /lua/lsp/python-ls.lua | |
parent | 4450d30d3e0374a57b6cc1985ba5f742275eb950 (diff) |
diagnostic update
Diffstat (limited to 'lua/lsp/python-ls.lua')
-rw-r--r-- | lua/lsp/python-ls.lua | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lua/lsp/python-ls.lua b/lua/lsp/python-ls.lua index 4bdbd9d9..8cc8b222 100644 --- a/lua/lsp/python-ls.lua +++ b/lua/lsp/python-ls.lua @@ -2,11 +2,13 @@ require'lspconfig'.pyright.setup { cmd = {DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver", "--stdio"}, on_attach = require'lsp'.common_on_attach, - handlers = { - ["textDocument/publishDiagnostics"] = vim.lsp.with( - vim.lsp.diagnostic.on_publish_diagnostics, { - virtual_text = O.python.virtual_text - } - ), - } + 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 + + }) + } } |