mirror of
https://github.com/don-philipe/dotfiles.git
synced 2026-03-31 02:33:11 +02:00
Add LSP helper plugin for python lang
This commit is contained in:
@@ -32,3 +32,10 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
|||||||
vim.keymap.set('n', '<F4>', '<cmd>lua vim.lsp.buf.code_action()<cr>', opts)
|
vim.keymap.set('n', '<F4>', '<cmd>lua vim.lsp.buf.code_action()<cr>', opts)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- helper plugin configuration
|
||||||
|
require'py_lsp'.setup{
|
||||||
|
host_python = '/usr/bin/python3',
|
||||||
|
default_venv_name = "venv",
|
||||||
|
language_server = "pylsp",
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,4 +2,6 @@ return {
|
|||||||
{'neovim/nvim-lspconfig', tag = 'v1.7.0'}, -- pin to a version thats compatible with nvim < 0.10
|
{'neovim/nvim-lspconfig', tag = 'v1.7.0'}, -- pin to a version thats compatible with nvim < 0.10
|
||||||
{'hrsh7th/cmp-nvim-lsp'},
|
{'hrsh7th/cmp-nvim-lsp'},
|
||||||
{'hrsh7th/nvim-cmp'},
|
{'hrsh7th/nvim-cmp'},
|
||||||
|
-- helper plugins
|
||||||
|
{'HallerPatrick/py_lsp.nvim'},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user