25 lines
518 B
Nix
Raw Permalink Normal View History

2024-04-20 09:42:06 -04:00
{
pkgs,
dsl,
config,
...
}:
{
2022-11-27 22:37:47 -07:00
2023-07-30 20:26:23 -04:00
# Toggleterm provides a floating terminal inside the editor for quick access
2022-11-27 22:37:47 -07:00
plugins = [ pkgs.vimPlugins.toggleterm-nvim ];
use.toggleterm.setup = dsl.callWith {
open_mapping = dsl.rawLua "[[<c-\\>]]";
hide_numbers = true;
direction = "float";
};
2023-11-05 20:40:18 -05:00
lua = ''
${builtins.readFile ./toggleterm.lua}
${if config.github then (builtins.readFile ./github.lua) else ""}
${if config.kubernetes then (builtins.readFile ./kubernetes.lua) else ""}
'';
2022-11-27 22:37:47 -07:00
}