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>";
options.silent = true;
action = "<cmd>bp<Return>"; action = "<cmd>bp<Return>";
}; }
"<C-d>" = { {
silent = true; mode = "n";
key = "<C-d>";
options.silent = true;
action = "<cmd>bn<Return>"; action = "<cmd>bn<Return>";
}; }
"<C-h>" = { {
silent = true; mode = "n";
key = "<C-h>";
options.silent = true;
action = "<cmd>noh<Return>"; action = "<cmd>noh<Return>";
}; }
"<leader>w" = { {
silent = true; mode = "n";
key = "<leader>w";
options.silent = true;
action = "<cmd>bdelete<Return><cmd>bnext<Return>"; action = "<cmd>bdelete<Return><cmd>bnext<Return>";
}; }
"<leader>`" = { {
silent = true; mode = "n";
key = "<leader>`";
options.silent = true;
action = "<cmd>:ToggleTerm<Return>"; action = "<cmd>:ToggleTerm<Return>";
}; }
"<leader>1" = { {
silent = true; mode = "n";
key = "<leader>1";
options.silent = true;
action = "<cmd>:Neotree toggle<Return>"; action = "<cmd>:Neotree toggle<Return>";
}; }
"<leader>ff" = { {
silent = true; mode = "n";
key = "<leader>ff";
options.silent = true;
action = "<cmd>:Telescope find_files<Return>"; action = "<cmd>:Telescope find_files<Return>";
}; }
"<leader>fg" = { {
silent = true; mode = "n";
key = "<leader>fg";
options.silent = true;
action = "<cmd>:Telescope live_grep<Return>"; action = "<cmd>:Telescope live_grep<Return>";
}; }
}; ];
};
plugins = { plugins = {
bufferline = { bufferline = {
enable = true; enable = true;