jjui
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
./plugins/mini.nix
|
||||
./plugins/supermaven.nix
|
||||
./plugins/oil.nix
|
||||
./plugins/toggleterm.nix
|
||||
./plugins/treesitter.nix
|
||||
];
|
||||
|
||||
|
||||
@@ -86,6 +86,17 @@
|
||||
action = ":Pick lsp scope='document_symbol'<CR>";
|
||||
options.desc = "Symbols (LSP, buffer)";
|
||||
}
|
||||
# g - git
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>gg";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require('toggleterm.terminal').Terminal:new({ cmd = 'jjui', direction = 'float' }):toggle()
|
||||
end
|
||||
'';
|
||||
options.desc = "jjui";
|
||||
}
|
||||
# l - lsp/formatter
|
||||
{
|
||||
mode = "n";
|
||||
|
||||
20
modules/home/neovim/plugins/toggleterm.nix
Normal file
20
modules/home/neovim/plugins/toggleterm.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
programs.nixvim.plugins.toggleterm = {
|
||||
enable = true;
|
||||
settings = {
|
||||
open_mapping = null;
|
||||
direction = "float";
|
||||
float_opts = {
|
||||
border = "curved";
|
||||
winblend = 3;
|
||||
};
|
||||
size = 20;
|
||||
hide_numbers = true;
|
||||
shade_terminals = true;
|
||||
shading_factor = 2;
|
||||
start_in_insert = true;
|
||||
close_on_exit = true;
|
||||
shell = "fish";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user