feat: add venv-selector, update blink config
This commit is contained in:
26
config/modules/plugins/venv-selector.nix
Normal file
26
config/modules/plugins/venv-selector.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
plugins.venv-selector = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
dap_enabled = true;
|
||||
name = [
|
||||
"venv"
|
||||
".venv"
|
||||
];
|
||||
pyenv_path = lib.nixvim.mkRaw "vim.fn.expand('$HOME/.pyenv/versions')";
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>cv";
|
||||
action = "<cmd>VenvSelect<CR>";
|
||||
options = {
|
||||
desc = "Select Python virtual env";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user