use new syntax for keymaps

This commit is contained in:
Adithya 2023-10-03 11:55:48 +05:30
parent 1e525aa3d7
commit 41f1315b95
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -42,42 +42,56 @@
updatetime = 100; updatetime = 100;
wrap = true; wrap = true;
}; };
maps = { keymaps = [
normal = { {
"<C-a>" = { mode = "n";
silent = true; key = "<C-a>";
action = "<cmd>bp<Return>"; options.silent = true;
}; action = "<cmd>bp<Return>";
"<C-d>" = { }
silent = true; {
action = "<cmd>bn<Return>"; mode = "n";
}; key = "<C-d>";
"<C-h>" = { options.silent = true;
silent = true; action = "<cmd>bn<Return>";
action = "<cmd>noh<Return>"; }
}; {
"<leader>w" = { mode = "n";
silent = true; key = "<C-h>";
action = "<cmd>bdelete<Return><cmd>bnext<Return>"; options.silent = true;
}; action = "<cmd>noh<Return>";
"<leader>`" = { }
silent = true; {
action = "<cmd>:ToggleTerm<Return>"; mode = "n";
}; key = "<leader>w";
"<leader>1" = { options.silent = true;
silent = true; action = "<cmd>bdelete<Return><cmd>bnext<Return>";
action = "<cmd>:Neotree toggle<Return>"; }
}; {
"<leader>ff" = { mode = "n";
silent = true; key = "<leader>`";
action = "<cmd>:Telescope find_files<Return>"; options.silent = true;
}; action = "<cmd>:ToggleTerm<Return>";
"<leader>fg" = { }
silent = true; {
action = "<cmd>:Telescope live_grep<Return>"; mode = "n";
}; key = "<leader>1";
}; options.silent = true;
}; action = "<cmd>:Neotree toggle<Return>";
}
{
mode = "n";
key = "<leader>ff";
options.silent = true;
action = "<cmd>:Telescope find_files<Return>";
}
{
mode = "n";
key = "<leader>fg";
options.silent = true;
action = "<cmd>:Telescope live_grep<Return>";
}
];
plugins = { plugins = {
bufferline = { bufferline = {
enable = true; enable = true;