From 7ff06a02d7b86e9fed11fa9b8f82f293cfe8c412 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Tue, 17 Dec 2024 16:06:31 +0100 Subject: [PATCH] nvim: update hover configuration --- home/config/nvim/init.fnl | 1 + home/config/nvim/nifoc/keymap.fnl | 5 +++++ home/config/nvim/plugins/hover.fnl | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/home/config/nvim/init.fnl b/home/config/nvim/init.fnl index 5acef5d..d25f9ee 100644 --- a/home/config/nvim/init.fnl +++ b/home/config/nvim/init.fnl @@ -52,6 +52,7 @@ (set o.termguicolors true) (set o.mouse :a) (set o.mousemodel :popup_setpos) + (set o.mousemoveevent true) (set o.cmdheight 1) ;(set o.showcmdloc :statusline) ;; Backups diff --git a/home/config/nvim/nifoc/keymap.fnl b/home/config/nvim/nifoc/keymap.fnl index 7ef1850..9cd31b1 100644 --- a/home/config/nvim/nifoc/keymap.fnl +++ b/home/config/nvim/nifoc/keymap.fnl @@ -93,6 +93,11 @@ ;; hover.nvim (keymap.set :n :K hover.hover {:desc "Show Documentation"}) (keymap.set :n :gK hover.hover_select {:desc "hover.nvim selection"}) + (keymap.set :n : #(hover.hover_switch :previous) + {:desc "hover.nvim previous source"}) + (keymap.set :n : #(hover.hover_switch :next) + {:desc "hover.nvim next source"}) + (keymap.set :n : hover.hover_mouse {:desc "hover.nvim mouse"}) ;; Label (wk.add [{1 :v :group :vcs} {1 :l :group :list/lsp} diff --git a/home/config/nvim/plugins/hover.fnl b/home/config/nvim/plugins/hover.fnl index 5d9d3a7..3737851 100644 --- a/home/config/nvim/plugins/hover.fnl +++ b/home/config/nvim/plugins/hover.fnl @@ -5,4 +5,5 @@ :preview_opts {:border :single} :preview_window false :title true - :mouse_providers []})) + :mouse_providers [:LSP] + :mouse_delay 1000}))