moved nixvim into own home-manager module.
moved pass store location.
This commit is contained in:
parent
bbc6beb3da
commit
2253c6c34a
28 changed files with 24 additions and 11 deletions
34
modules/home-manager/nvim/toggleterm.nix
Normal file
34
modules/home-manager/nvim/toggleterm.nix
Normal 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"
|
||||
})
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue