From df380a1fe05a6d4d649f3e9fb55dfc107b3994d3 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Sat, 23 Apr 2022 08:29:32 -0500 Subject: [PATCH] added pyright lsp config --- nvim/lua/plugins-conf.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nvim/lua/plugins-conf.lua b/nvim/lua/plugins-conf.lua index d748f34..9c00126 100644 --- a/nvim/lua/plugins-conf.lua +++ b/nvim/lua/plugins-conf.lua @@ -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