summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/python-ls.lua
blob: 8cc8b222081fc8ab8cc5fede82dece26c1437c06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- npm i -g pyright
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.diagnostics.virtual_text,
            signs = O.python.diagnostics.signs,
            underline = O.python.diagnostics.underline,
            update_in_insert = true

        })
    }
}