mirror of
https://github.com/Superredstone/nixvim.git
synced 2026-06-17 09:14:40 +02:00
feat: config rewrite (#1)
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{ ... }:
|
||||
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";
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user