mirror of
https://github.com/Superredstone/nixvim.git
synced 2026-06-17 17:24:38 +02:00
53 lines
910 B
Nix
53 lines
910 B
Nix
{ ... }:
|
|
let
|
|
defaultOptions = {
|
|
silent = true;
|
|
};
|
|
in
|
|
{
|
|
keymaps = [
|
|
{
|
|
key = "<space>e";
|
|
action = ":Neotree toggle<CR>";
|
|
options = defaultOptions;
|
|
}
|
|
{
|
|
key = "<C-s>";
|
|
action = ":w<CR>";
|
|
}
|
|
{
|
|
key = "<S-q>";
|
|
action = ":bdelete<CR>";
|
|
options = defaultOptions;
|
|
}
|
|
{
|
|
key = "<A-l>";
|
|
action = ":bnext<CR>";
|
|
options = defaultOptions;
|
|
}
|
|
{
|
|
key = "<A-h>";
|
|
action = ":bprevious<CR>";
|
|
options = defaultOptions;
|
|
}
|
|
{
|
|
key = "<C-f>";
|
|
action = ":lua vim.lsp.buf.format()<CR>";
|
|
options = defaultOptions;
|
|
}
|
|
{
|
|
action = ":ToggleTerm direction=float<CR>";
|
|
key = "<Space>t";
|
|
}
|
|
{
|
|
action = "<C-\\><C-n>";
|
|
key = "<Esc>";
|
|
options = {
|
|
silent = true;
|
|
desc = "Exit terminal insert mode";
|
|
};
|
|
mode = "t";
|
|
}
|
|
];
|
|
}
|