From 6d9c18cc27acc2c9f00855e00d004cd020f8ea59 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 27 Feb 2024 21:12:53 +0100 Subject: Add vim-slash again --- fnl/plugins/vim-slash.fnl | 6 ++++++ fnl/settings/keymaps.fnl | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 fnl/plugins/vim-slash.fnl (limited to 'fnl') 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 (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 : :zz {}] [:n : :zz {}] - ;; Remove highlighted search - [:n : :nohlsearch {}] ;; Close window [:n :Q ":q" {}] ;; Force refresh -- cgit v1.2.3-70-g09d2