moved nixvim into own home-manager module.

moved pass store location.
This commit is contained in:
Gabe Venberg 2024-03-31 17:42:33 -05:00
parent bbc6beb3da
commit 2253c6c34a
28 changed files with 24 additions and 11 deletions

View file

@ -0,0 +1,34 @@
{
configs,
pkgs,
...
}: {
programs.nixvim = {
plugins.toggleterm = {
enable = true;
direction = "horizontal";
insertMappings = false;
openMapping = ''<c-\>'';
terminalMappings = false;
};
keymaps = [
{
action = "function() Floatingterm:toggle() end";
key = "<leader>s";
lua = true;
mode = "n";
options = {
silent = true;
desc = "toggle scratch terminal";
};
}
];
extraConfigLuaPre = ''
local Terminal = require('toggleterm.terminal').Terminal
Floatingterm = Terminal:new({
hidden = true,
direction = "float"
})
'';
};
}