summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-09 16:59:15 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-09 16:59:15 +0200
commitd7a6755c559c9a5b296bdf65ce67112adef93edb (patch)
treecbcd90d97a21f621fea904e9e627e97579643357
parentdec28a6f64aede1bd196eb64e0fcf8d719252f03 (diff)
checkpoint
-rw-r--r--after/plugin/harpoon.lua33
-rw-r--r--lua/config/set.lua4
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", "<C-h>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
+map("n", "<C-h>", 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