diff options
-rw-r--r-- | fnl/plugins/vim-slash.fnl | 6 | ||||
-rw-r--r-- | fnl/settings/keymaps.fnl | 2 | ||||
-rw-r--r-- | lazy-lock.json | 1 |
3 files changed, 7 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 diff --git a/lazy-lock.json b/lazy-lock.json index 079971b..94a0b06 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -67,6 +67,7 @@ "vim-dadbod-completion": { "branch": "master", "commit": "c920cb0ba3dff4b1b0ed373e1c0b3007dec696c2" }, "vim-dadbod-ui": { "branch": "master", "commit": "165699c573469e6a95b48d35052f848c340c5911" }, "vim-dotenv": { "branch": "master", "commit": "5c51cfcf8d87280d6414e03cd6b253eb70ecb800" }, + "vim-slash": { "branch": "master", "commit": "31aee09b7ea8893a18fa34f65e63e364fc998444" }, "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }, "zen-mode.nvim": { "branch": "main", "commit": "78557d972b4bfbb7488e17b5703d25164ae64e6a" } }
\ No newline at end of file |