mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 11:40:36 +00:00
chore(jedi.lua): remove unused keybindings in jedi plugin configuration chore(lsp-config.lua): remove pyright language server configuration feat(lsp-config.lua): add jedi_completion plugin configuration to pylsp language server feat(lsp-config.lua): add jedi_language_server configuration chore(mason.lua): remove pyright language server from mason plugin configuration feat(mason.lua): add jedi_language_server to mason plugin configuration chore(poet-v.lua): add autocommand to activate virtualenv when entering a buffer with .venv or .py file
23 lines
680 B
Lua
23 lines
680 B
Lua
vim.g.poetv_executables = { "poetry", "pipenv" }
|
|
vim.g.poetv_auto_activate = 1
|
|
vim.g.poetv_set_environment = 1
|
|
vim.g.poetv_statusline_symbol = "🐍"
|
|
|
|
|
|
-- Keybindings
|
|
|
|
local opts = { noremap = true, silent = true }
|
|
|
|
-- Poetv: Activate Virtualenv
|
|
opts.desc = "Poetv: Activate virtualenv"
|
|
vim.keymap.set("n", "<leader>pva", "<cmd>PoetvActivate<CR>", opts)
|
|
|
|
-- Poetv: Deactivate Virtualenv
|
|
opts.desc = "Poetv: Deactivate virtualenv"
|
|
vim.keymap.set("n", "<leader>pvd", "<cmd>PoetvDeactivate<CR>", opts)
|
|
|
|
-- Setup Autocommands
|
|
|
|
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" },
|
|
{ pattern = { "*/.venv/*", "*.py" }, callback = function() vim.cmd([[ PoetvActivate]]) end })
|