neovim -> nixvim

This commit is contained in:
2026-02-20 23:38:41 +01:00
parent 2f47700b62
commit 6fd9424a96
60 changed files with 3005 additions and 176 deletions

View File

@@ -0,0 +1,43 @@
{ ... }:
{
programs.nixvim = {
plugins = {
toggleterm = {
enable = true;
settings = {
open_mapping.__raw = "[[<c-,>]]";
insert_mappings = true;
shade_terminals = false;
};
};
};
keymaps = [
{
action = "<CMD>ToggleTermSendCurrentLine<CR>";
key = "<leader>sts";
mode = "n";
options = {
desc = "Send Current Line";
};
}
{
action = "<CMD>ToggleTermSendVisualLines<CR>";
key = "<leader>stv";
mode = "x";
options = {
desc = "Send all the (whole) lines in selection";
};
}
{
action = "<CMD>ToggleTermSendVisualSelection<CR>";
key = "<leader>sts";
mode = "x";
options = {
desc = "Send selection";
};
}
];
};
}