Apply lua linter formatting

Remove snippets
Update python path on venv selection
Use basedpyright language server for better import resolution
This commit is contained in:
Daniel McKnight 2025-06-08 22:46:02 -07:00
parent c068921d55
commit 33588e1afc
4 changed files with 24 additions and 16 deletions

View file

@ -69,7 +69,11 @@ return {
},
keys = {
{ "<Leader>ea", "<cmd>VenvSelect<cr>", desc = "Activate Virtual Environment" },
{ "<Leader>es", "<cmd>lua print(require('venv-selector').venv())<cr>", desc = "Show Active Virtual Environment" },
{
"<Leader>es",
"<cmd>lua print(require('venv-selector').venv())<cr>",
desc = "Show Active Virtual Environment",
},
},
opts = {
search = {
@ -80,10 +84,13 @@ return {
command = "fdfind -p '.*/bin/python$' ~/Code/.venvs",
},
},
post_set_venv = function()
local venv_path = require("venv-selector").get_active_path()
vim.env.PYTHONPATH = venv_path .. "/lib/python3.*/site-packages"
end
options = {
on_venv_activate_callback = function()
local python_path = require("venv-selector").python()
--print("Active python: " .. python_path)
vim.env.PYTHONPATH = python_path
end,
},
},
},
}