mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 09:48:42 +02:00
plugins/harpoon: fix keymaps + test
This commit is contained in:
parent
418bf5da17
commit
73f21c063d
2 changed files with 102 additions and 23 deletions
62
tests/test-sources/plugins/utils/harpoon.nix
Normal file
62
tests/test-sources/plugins/utils/harpoon.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
empty = {
|
||||
# Harpoon expects to access `~/.local/share/nvim/harpoon.json` which is not available in the
|
||||
# test environment
|
||||
tests.dontRun = true;
|
||||
|
||||
plugins.harpoon.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
# Harpoon expects to access `~/.local/share/nvim/harpoon.json` which is not available in the
|
||||
# test environment
|
||||
tests.dontRun = true;
|
||||
|
||||
plugins.harpoon = {
|
||||
enable = true;
|
||||
|
||||
keymapsSilent = true;
|
||||
keymaps = {
|
||||
addFile = "<leader>a";
|
||||
navFile = {
|
||||
"1" = "<C-j>";
|
||||
"2" = "<C-k>";
|
||||
"3" = "<C-l>";
|
||||
"4" = "<C-m>";
|
||||
};
|
||||
navNext = "<leader>b";
|
||||
navPrev = "<leader>c";
|
||||
gotoTerminal = {
|
||||
"1" = "J";
|
||||
"2" = "K";
|
||||
"3" = "L";
|
||||
"4" = "M";
|
||||
};
|
||||
cmdToggleQuickMenu = "<leader>d";
|
||||
tmuxGotoTerminal = {
|
||||
"1" = "<C-1>";
|
||||
"2" = "<C-2>";
|
||||
"{down-of}" = "<leader>g";
|
||||
};
|
||||
};
|
||||
saveOnToggle = false;
|
||||
saveOnChange = true;
|
||||
enterOnSendcmd = false;
|
||||
tmuxAutocloseWindows = false;
|
||||
excludedFiletypes = ["harpoon"];
|
||||
markBranch = false;
|
||||
projects = {
|
||||
"$HOME/personal/vim-with-me/server" = {
|
||||
termCommands = [
|
||||
"./env && npx ts-node src/index.ts"
|
||||
];
|
||||
};
|
||||
};
|
||||
menu = {
|
||||
width = 60;
|
||||
height = 10;
|
||||
borderChars = ["─" "│" "─" "│" "╭" "╮" "╯" "╰"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue