feat: migrating neovim
This commit is contained in:
parent
86266f8205
commit
8d5e0e6566
47 changed files with 1964 additions and 222 deletions
59
home-manager/modules/neovim/plugins/harpoon.nix
Normal file
59
home-manager/modules/neovim/plugins/harpoon.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{...}: {
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
harpoon.enable = true;
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed = "<leader>m";
|
||||
mode = "n";
|
||||
group = " Marks";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>mm";
|
||||
action = ":lua require('harpoon.ui').toggle_quick_menu()<CR>";
|
||||
# lua = true;
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Mark Menu";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ma";
|
||||
action = ":lua require('harpoon.mark').add_file()<CR>";
|
||||
# lua = true;
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Mark File";
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>mn";
|
||||
action = ":lua require('harpoon.ui').nav_next()<CR>";
|
||||
# lua = true;
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Next Mark";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>mp";
|
||||
action = ":lua require('harpoon.ui').nav_prev()<CR>";
|
||||
# lua = true;
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Prev Mark";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue