From d7a6755c559c9a5b296bdf65ce67112adef93edb Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 9 Oct 2024 16:59:15 +0200 Subject: checkpoint --- after/plugin/harpoon.lua | 33 +++++++++++++++++++++++++-------- lua/config/set.lua | 4 ++-- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/after/plugin/harpoon.lua b/after/plugin/harpoon.lua index 466fe8c..999b957 100644 --- a/after/plugin/harpoon.lua +++ b/after/plugin/harpoon.lua @@ -4,14 +4,31 @@ local map = vim.keymap.set -- REQUIRED harpoon:setup() -map("n", "", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) +map("n", "", function() + harpoon.ui:toggle_quick_menu(harpoon:list()) +end, { desc = "Harpoon pick menu" }) -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) +map("n", " ha", function() + harpoon:list():add() + print("Added to harpoon.") +end, { desc = "Harpoon add" }) +map("n", " h1", function() + harpoon:list():select(1) +end, { desc = "Harpoon 1" }) +map("n", " h2", function() + harpoon:list():select(2) +end, { desc = "Harpoon 2" }) +map("n", " h3", function() + harpoon:list():select(3) +end, { desc = "Harpoon 3" }) +map("n", " h4", function() + harpoon:list():select(4) +end, { desc = "Harpoon 4" }) -- Toggle previous & next buffers stored within Harpoon list -map("n", " hp", function() harpoon:list():prev() end) -map("n", " hn", function() harpoon:list():next() end) +map("n", " hp", function() + harpoon:list():prev() +end, { desc = "Harpoon previous" }) +map("n", " hn", function() + harpoon:list():next() +end, { desc = "Harpoon next" }) diff --git a/lua/config/set.lua b/lua/config/set.lua index 57b6e99..bc28f22 100644 --- a/lua/config/set.lua +++ b/lua/config/set.lua @@ -107,8 +107,8 @@ vim.cmd("match Todo /\\(TODO\\|FIXME\\):/") vim.cmd("syntax match matchURL /" .. "\\(https\\?\\|ftp\\|magnet\\):\\/\\/[[:alnum:]%\\/_#.-~:]*" .. "/") vim.cmd("hi matchURL guifg=" .. require("nord.colors").palette.aurora.yellow) -vim.opt.fillchars = { fold = " " } -vim.opt.foldmethod = "indent" +-- vim.opt.fillchars = { fold = " " } +-- vim.opt.foldmethod = "indent" vim.opt.foldenable = false vim.opt.foldlevel = 99 vim.g.markdown_folding = 1 -- cgit v1.2.3