mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-14 04:52:56 +00:00
97f99a149e
they stuck to the height of the terminal window at initial open, which looked bad whenever it changed, especially if it increased.
25 lines
518 B
Nix
25 lines
518 B
Nix
{
|
|
pkgs,
|
|
dsl,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
|
|
# Toggleterm provides a floating terminal inside the editor for quick access
|
|
|
|
plugins = [ pkgs.vimPlugins.toggleterm-nvim ];
|
|
|
|
use.toggleterm.setup = dsl.callWith {
|
|
open_mapping = dsl.rawLua "[[<c-\\>]]";
|
|
hide_numbers = true;
|
|
direction = "float";
|
|
};
|
|
|
|
lua = ''
|
|
${builtins.readFile ./toggleterm.lua}
|
|
${if config.github then (builtins.readFile ./github.lua) else ""}
|
|
${if config.kubernetes then (builtins.readFile ./kubernetes.lua) else ""}
|
|
'';
|
|
}
|