From 434df00be38aae39eabc2e63242515a6d9c6b7b1 Mon Sep 17 00:00:00 2001 From: don philipe Date: Tue, 17 Feb 2026 14:26:00 +0100 Subject: [PATCH] Add LSP helper plugin for python lang --- .config/nvim/lua/config/lsp.lua | 7 +++++++ .config/nvim/lua/plugins/lsp.lua | 2 ++ 2 files changed, 9 insertions(+) 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'}, }