diff --git a/.config/nvim/lua/config/lsp.lua b/.config/nvim/lua/config/lsp.lua index 41e922d..2eed7b2 100644 --- a/.config/nvim/lua/config/lsp.lua +++ b/.config/nvim/lua/config/lsp.lua @@ -32,3 +32,10 @@ vim.api.nvim_create_autocmd('LspAttach', { vim.keymap.set('n', '', 'lua vim.lsp.buf.code_action()', opts) end, }) + +-- helper plugin configuration +require'py_lsp'.setup{ + host_python = '/usr/bin/python3', + default_venv_name = "venv", + language_server = "pylsp", +} diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index 4ecbded..ef17400 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -2,4 +2,6 @@ return { {'neovim/nvim-lspconfig', tag = 'v1.7.0'}, -- pin to a version thats compatible with nvim < 0.10 {'hrsh7th/cmp-nvim-lsp'}, {'hrsh7th/nvim-cmp'}, + -- helper plugins + {'HallerPatrick/py_lsp.nvim'}, }