Neovim, add missing remaps
This commit is contained in:
parent
cfe5f11691
commit
ddb232fba9
1 changed files with 38 additions and 9 deletions
|
|
@ -75,15 +75,44 @@
|
|||
mode = "n";
|
||||
action = mkRaw "vim.diagnostic.open_float";
|
||||
}
|
||||
# -- Easy Split Navigation
|
||||
# -- nnoremap <C-J> <C-W><C-J>
|
||||
# -- nnoremap <C-K> <C-W><C-K>
|
||||
# -- nnoremap <C-L> <C-W><C-L>
|
||||
# -- nnoremap <C-H> <C-W><C-H>
|
||||
#
|
||||
# -- Easy copy and pasting to external programs
|
||||
# -- map <C-y> "+yy
|
||||
# -- map <C-p> "+P
|
||||
{
|
||||
key = "<C-J>";
|
||||
mode = "n";
|
||||
action = "<C-W><C-J>";
|
||||
}
|
||||
{
|
||||
key = "<C-K>";
|
||||
mode = "n";
|
||||
action = "<C-W><C-K>";
|
||||
}
|
||||
{
|
||||
key = "<C-L>";
|
||||
mode = "n";
|
||||
action = "<C-W><C-L>";
|
||||
}
|
||||
{
|
||||
key = "<C-H>";
|
||||
mode = "n";
|
||||
action = "<C-W><C-H>";
|
||||
}
|
||||
{
|
||||
key = "<C-y>";
|
||||
mode = "x";
|
||||
action = "\"+y";
|
||||
options.remap = true;
|
||||
}
|
||||
{
|
||||
key = "<C-y>";
|
||||
mode = "n";
|
||||
action = "\"+yy";
|
||||
options.remap = true;
|
||||
}
|
||||
{
|
||||
key = "<C-p>";
|
||||
mode = "n";
|
||||
action = "\"+P";
|
||||
options.remap = true;
|
||||
}
|
||||
] ++ lib.lists.optionals config.neovim.plugins.opencode.enable (let
|
||||
ocFunc = cmd: let raw = "function() require('opencode').${cmd} end";
|
||||
in (config.lib.nixvim.mkRaw raw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue