summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-03-05 00:13:44 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-03-05 00:13:44 +0100
commit7889e0c5119e09876ccfaae6e75a2033184d083a (patch)
treee09223f24f8b1ca3df3226bf2f8d3d5c5eee4018 /fnl
parent04c7f672fa3d58aaa340a36d5590088d816b578f (diff)
Remove vim-slash
Diffstat (limited to 'fnl')
-rw-r--r--fnl/plugins/vim-slash.fnl6
-rw-r--r--fnl/settings/keymaps.fnl2
2 files changed, 2 insertions, 6 deletions
diff --git a/fnl/plugins/vim-slash.fnl b/fnl/plugins/vim-slash.fnl
deleted file mode 100644
index e638d73..0000000
--- a/fnl/plugins/vim-slash.fnl
+++ /dev/null
@@ -1,6 +0,0 @@
-;; Provides a set of mappings for enhancing in-buffer search experience.
-
-(fn config []
- (vim.cmd "noremap <plug>(slash-after) zz"))
-
-{1 :junegunn/vim-slash :event :BufReadPost : config}
diff --git a/fnl/settings/keymaps.fnl b/fnl/settings/keymaps.fnl
index 3f800c6..d72ac86 100644
--- a/fnl/settings/keymaps.fnl
+++ b/fnl/settings/keymaps.fnl
@@ -38,6 +38,8 @@
[:n :<c-u> :<c-u>zz {}]
;; Close window
[:n :Q "<cmd>:q<CR>" {}]
+ ;; Remove highlighted search
+ [:n :<c-m> :<cmd>nohlsearch<CR> {}]
;; Force refresh
[:n :mj "<cmd>:e<CR>" {:desc :Refresh}]])