diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-08-15 18:05:57 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-08-15 18:05:57 +0200 |
commit | 68192521b51f5eb1983b299baa140bf5ad923189 (patch) | |
tree | 0f117950811da958750ad3ade8a2af3e06fc75bf /after | |
parent | c53bda87d0fa6a5cd95595c374215c586bdd7d40 (diff) |
checkpoint
Diffstat (limited to 'after')
-rw-r--r-- | after/plugin/harpoon.lua | 32 | ||||
-rw-r--r-- | after/plugin/vim-tmux-navigator.lua | 2 |
2 files changed, 9 insertions, 25 deletions
diff --git a/after/plugin/harpoon.lua b/after/plugin/harpoon.lua index f7d522a..466fe8c 100644 --- a/after/plugin/harpoon.lua +++ b/after/plugin/harpoon.lua @@ -4,30 +4,14 @@ local map = vim.keymap.set -- REQUIRED harpoon:setup() -map("n", "<C-h>", function() - harpoon.ui:toggle_quick_menu(harpoon:list()) -end, { desc = "Check the list of files in harpoon" }) +map("n", "<C-h>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) -map("n", " ha", function() - harpoon:list():add() -end, { desc = "Append file to harpoon starred list" }) -map("n", " h1", function() - harpoon:list():select(1) -end, { desc = "Harpoon to 1st file in list" }) -map("n", " h2", function() - harpoon:list():select(2) -end, { desc = "Harpoon to 2nd file in list" }) -map("n", " h3", function() - harpoon:list():select(3) -end, { desc = "Harpoon to 3rd file in list" }) -map("n", " h4", function() - harpoon:list():select(4) -end, { desc = "Harpoon to 4th file in list" }) +map("n", " ha", function() harpoon:list():add() end) +map("n", " h1", function() harpoon:list():select(1) end) +map("n", " h2", function() harpoon:list():select(2) end) +map("n", " h3", function() harpoon:list():select(3) end) +map("n", " h4", function() harpoon:list():select(4) end) -- Toggle previous & next buffers stored within Harpoon list -map("n", " hp", function() - harpoon:list():prev() -end, { desc = "Harpoon to previous file in list" }) -map("n", " hn", function() - harpoon:list():next() -end, { desc = "Harpoon to next file in list" }) +map("n", " hp", function() harpoon:list():prev() end) +map("n", " hn", function() harpoon:list():next() end) diff --git a/after/plugin/vim-tmux-navigator.lua b/after/plugin/vim-tmux-navigator.lua index 0aed3f9..1574080 100644 --- a/after/plugin/vim-tmux-navigator.lua +++ b/after/plugin/vim-tmux-navigator.lua @@ -1,4 +1,4 @@ -vim.cmd("let g:tmux_navigator_no_mappings = 1") +vim.g.tmux_navigator_no_mappings = true vim.keymap.set("n", "<M-h>", ":<C-U>TmuxNavigateLeft<cr>", { silent = true }) vim.keymap.set("n", "<M-j>", ":<C-U>TmuxNavigateDown<cr>", { silent = true }) vim.keymap.set("n", "<M-k>", ":<C-U>TmuxNavigateUp<cr>", { silent = true }) |