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