summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl')
-rw-r--r--fnl/plugins/vim-slash.fnl6
-rw-r--r--fnl/settings/keymaps.fnl2
2 files changed, 6 insertions, 2 deletions
diff --git a/fnl/plugins/vim-slash.fnl b/fnl/plugins/vim-slash.fnl
new file mode 100644
index 0000000..e638d73
--- /dev/null
+++ b/fnl/plugins/vim-slash.fnl
@@ -0,0 +1,6 @@
+;; 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 d61ef8b..3f800c6 100644
--- a/fnl/settings/keymaps.fnl
+++ b/fnl/settings/keymaps.fnl
@@ -36,8 +36,6 @@
;; Jump half a page and centralize the view
[:n :<c-d> :<c-d>zz {}]
[:n :<c-u> :<c-u>zz {}]
- ;; Remove highlighted search
- [:n :<c-m> :<cmd>nohlsearch<CR> {}]
;; Close window
[:n :Q "<cmd>:q<CR>" {}]
;; Force refresh