Compare commits

...

2 commits

Author SHA1 Message Date
Bruno BELANYI 9ed2dcefde home: vim: which-key: use lua callbacks
Some checks failed
ci/woodpecker/push/check Pipeline failed
2024-07-26 11:54:11 +00:00
Bruno BELANYI 0d820cc2f4 home: vim: move 'nohls' to 'which-key' 2024-07-26 11:52:17 +00:00
2 changed files with 6 additions and 7 deletions

View file

@ -1,7 +0,0 @@
local wk = require("which-key")
local keys = {
{ "<leader><leader>", "<cmd>nohls<CR>", desc = "Clear search highlight" },
}
wk.add(keys)

View file

@ -25,3 +25,9 @@ wk.setup({
}, },
}, },
}) })
local keys = {
{ "<leader><leader>", vim.cmd.nohlsearch, desc = "Clear search highlight" },
}
wk.add(keys)