mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-30 06:55:38 +00:00
30 lines
650 B
Nix
30 lines
650 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";
|
|
float_opts = {
|
|
width = dsl.rawLua "vim.o.columns - 4";
|
|
height = dsl.rawLua "vim.o.lines - 4";
|
|
row = 0;
|
|
};
|
|
};
|
|
|
|
lua = ''
|
|
${builtins.readFile ./toggleterm.lua}
|
|
${if config.github then (builtins.readFile ./github.lua) else ""}
|
|
${if config.kubernetes then (builtins.readFile ./kubernetes.lua) else ""}
|
|
'';
|
|
}
|