neovim -> nixvim
This commit is contained in:
43
home/programs/nixvim/plugins/toggleterm.nix
Normal file
43
home/programs/nixvim/plugins/toggleterm.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
toggleterm = {
|
||||
enable = true;
|
||||
settings = {
|
||||
open_mapping.__raw = "[[<c-,>]]";
|
||||
insert_mappings = true;
|
||||
shade_terminals = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>ToggleTermSendCurrentLine<CR>";
|
||||
key = "<leader>sts";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Send Current Line";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>ToggleTermSendVisualLines<CR>";
|
||||
key = "<leader>stv";
|
||||
mode = "x";
|
||||
options = {
|
||||
desc = "Send all the (whole) lines in selection";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>ToggleTermSendVisualSelection<CR>";
|
||||
key = "<leader>sts";
|
||||
mode = "x";
|
||||
options = {
|
||||
desc = "Send selection";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user