added pyright lsp config

This commit is contained in:
Rudis Muiznieks 2022-04-23 08:29:32 -05:00
parent 619faa4cf7
commit df380a1fe0
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 6 additions and 0 deletions

View File

@ -132,6 +132,12 @@ require'lspconfig'.efm.setup {
}
}
}
require'lspconfig'.pyright.setup {
capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()),
on_attach = function(_, bufnr)
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
end,
}
-- status line setup