diff options
| author | Naz <ndpm13@ch-naseem.com> | 2025-02-08 09:59:52 +0100 |
|---|---|---|
| committer | Naz <ndpm13@ch-naseem.com> | 2025-02-08 09:59:52 +0100 |
| commit | b3a657b88cabbfe2512700a5cb11181924b2a7ba (patch) | |
| tree | c9edfffcbedca54319cd735d6df80d461a4cad3d /lua/config/mappings.lua | |
| parent | 3d882514674296ac22e9aea051318a7eff5d6d1e (diff) | |
✨feat: add some mappings and options
Diffstat (limited to 'lua/config/mappings.lua')
| -rw-r--r-- | lua/config/mappings.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lua/config/mappings.lua b/lua/config/mappings.lua new file mode 100644 index 0000000..27fc506 --- /dev/null +++ b/lua/config/mappings.lua @@ -0,0 +1,16 @@ +-- general keymaps + +vim.api.nvim_set_keymap("n", "<leader>p", ":tabnext<CR>", { noremap = true, silent = true, desc = "Next Tab" }) +vim.api.nvim_set_keymap( + "n", + "<leader>n", + ":vsplit<CR>:wincmd l<CR>", + { noremap = true, silent = true, desc = "Split Right" } +) +vim.api.nvim_set_keymap( + "n", + "<leader>m", + ":split<CR>:wincmd j<CR>", + { noremap = true, silent = true, desc = "Split Down" } +) +vim.api.nvim_set_keymap("n", "<Esc>", ":noh<CR>", { noremap = true, silent = true, desc = "Clear Search" }) |
