From 04fba535ff767edb2ed6967106fc8d7ec5324eb7 Mon Sep 17 00:00:00 2001 From: doryan Date: Mon, 23 Dec 2024 00:59:51 +0400 Subject: [PATCH] feat(hover): add plugin --- init.lua | 1 + lua/config/plugins/hover_actions.lua | 23 +++++++++++++++++++++++ lua/plugins/core/init.lua | 3 +++ 3 files changed, 27 insertions(+) create mode 100644 lua/config/plugins/hover_actions.lua diff --git a/init.lua b/init.lua index cdfec4d..56ff827 100644 --- a/init.lua +++ b/init.lua @@ -21,6 +21,7 @@ require("config.plugins.comment") require("config.plugins.dap") require("config.plugins.gitsigns") require("ibl").setup() +require("config.plugins.hover_actions") require("config.plugins.lsp_diagnostic") require("config.plugins.lualine") require("config.plugins.navic") diff --git a/lua/config/plugins/hover_actions.lua b/lua/config/plugins/hover_actions.lua new file mode 100644 index 0000000..398f0ca --- /dev/null +++ b/lua/config/plugins/hover_actions.lua @@ -0,0 +1,23 @@ +require("hover").setup { + init = function() + -- Require providers + require("hover.providers.lsp") + -- require('hover.providers.gh') + -- require('hover.providers.gh_user') + -- require('hover.providers.jira') + -- require('hover.providers.dap') + -- require('hover.providers.fold_preview') + require('hover.providers.diagnostic') + -- require('hover.providers.man') + -- require('hover.providers.dictionary') + end, + preview_opts = { + border = 'single' + }, + preview_window = false, + title = true, + mouse_providers = { + 'LSP' + }, + mouse_delay = 1000 +} diff --git a/lua/plugins/core/init.lua b/lua/plugins/core/init.lua index a5884d9..177d58e 100644 --- a/lua/plugins/core/init.lua +++ b/lua/plugins/core/init.lua @@ -8,6 +8,9 @@ return { { "lewis6991/gitsigns.nvim" }, + { + "lewis6991/hover.nvim", + }, { "nvim-lualine/lualine.nvim", },