Skip to content

Commit

Permalink
custom keymapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ImenKedir committed Jan 6, 2023
1 parent d72cca0 commit 9913cf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions lua/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ keymap("n", "<C-h>", "<C-w>h", opts)
keymap("n", "<C-j>", "<C-w>j", opts)
keymap("n", "<C-k>", "<C-w>k", opts)
keymap("n", "<C-l>", "<C-w>l", opts)
keymap("n", "<leader>h", "<C-w>h", opts)
keymap("n", "<leader>j", "<C-w>j", opts)
keymap("n", "<leader>k", "<C-w>k", opts)
keymap("n", "<leader>l", "<C-w>l", opts)

-- Resize
keymap("n", "<M-j>", ":resize -2<CR>", opts)
Expand Down
4 changes: 2 additions & 2 deletions lua/config/which-key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ import("which-key", function(whichKey)
},
["f"] = {
name = "Find",
["f"] = { "<cmd>lua require('telescope.builtin').live_grep()<CR>", "Text" },
["s"] = { "<cmd>lua require('telescope.builtin').find_files()<CR>", "Files" },
["s"] = { "<cmd>lua require('telescope.builtin').live_grep()<CR>", "Text" },
["f"] = { "<cmd>lua require('telescope.builtin').find_files()<CR>", "Files" },
["h"] = { "<cmd>lua require('telescope.builtin').help_tags()<CR>", "Help tags" },
["b"] = { "<cmd>lua require('telescope.builtin').buffers()<CR>", "Buffers" },
["m"] = { "<cmd>lua require('harpoon.ui').toggle_quick_menu()<cr>", "Marked files" },
Expand Down

0 comments on commit 9913cf1

Please sign in to comment.