Neovim, add missing remaps

This commit is contained in:
Julia Lange 2026-05-13 00:02:39 -07:00
parent cfe5f11691
commit ddb232fba9
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto

View file

@ -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);