Make search highlight keybind be a toggle

The keybind now inverts the current `hlsearch`-option, so it's also useful to (re-)enable the option as needed.
pull/47/head
Patrick Flakus 3 years ago committed by GitHub
parent 7a082a3306
commit 4f5697226c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,7 +88,7 @@ local mappings = {
["w"] = { "<cmd>w!<CR>", "Save" }, ["w"] = { "<cmd>w!<CR>", "Save" },
["q"] = { "<cmd>q!<CR>", "Quit" }, ["q"] = { "<cmd>q!<CR>", "Quit" },
["c"] = { "<cmd>Bdelete!<CR>", "Close Buffer" }, ["c"] = { "<cmd>Bdelete!<CR>", "Close Buffer" },
["h"] = { "<cmd>nohlsearch<CR>", "No Highlight" }, ["h"] = { "<cmd>set invhlsearch<CR>", "Toggle Highlight" },
["f"] = { ["f"] = {
"<cmd>lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})<cr>", "<cmd>lua require('telescope.builtin').find_files(require('telescope.themes').get_dropdown{previewer = false})<cr>",
"Find files", "Find files",

Loading…
Cancel
Save