nixos/home/modules/ide/nvim/keymaps.nix
2026-04-16 22:18:45 +02:00

92 lines
1.6 KiB
Nix

{
keymaps = [
{
action = "<cmd>Neotree focus<CR>";
key = "<leader>e";
}
{
mode = [
"n"
"i"
"t"
];
key = "<C-k>";
action = "<cmd>wincmd k<cr>";
options = {
desc = "Move to window above";
noremap = true;
silent = true;
};
}
{
mode = [
"n"
"i"
"t"
];
key = "<C-j>";
action = "<cmd>wincmd j<cr>";
options = {
desc = "Move to window below";
noremap = true;
silent = true;
};
}
{
mode = [
"n"
"i"
"t"
];
key = "<C-h>";
action = "<cmd>wincmd h<cr>";
options = {
desc = "Move to window left";
noremap = true;
silent = true;
};
}
{
mode = [
"n"
"i"
"t"
];
key = "<C-l>";
action = "<cmd>wincmd l<cr>";
options = {
desc = "Move to window right";
noremap = true;
silent = true;
};
}
# telescope
{
action = "<cmd>Telescope live_grep<CR>";
key = "<leader>ts";
}
{
action = "<cmd>Telescope find_files<CR>";
key = "<leader>tf";
}
{
action = "<cmd>Telescope git_commits<CR>";
key = "<leader>tc";
}
{
action = "<cmd>Telescope oldfiles<CR>";
key = "<leader>th";
}
{
action = "<cmd>Telescope buffers<CR>";
key = "<leader>tb";
}
{
action = "<cmd>Telescope colorscheme<CR>";
key = "<leader>ch";
}
];
}