feat(hover): add plugin

This commit is contained in:
doryan 2024-12-23 00:59:51 +04:00
parent 046942c93f
commit 04fba535ff
3 changed files with 27 additions and 0 deletions

View File

@ -21,6 +21,7 @@ require("config.plugins.comment")
require("config.plugins.dap") require("config.plugins.dap")
require("config.plugins.gitsigns") require("config.plugins.gitsigns")
require("ibl").setup() require("ibl").setup()
require("config.plugins.hover_actions")
require("config.plugins.lsp_diagnostic") require("config.plugins.lsp_diagnostic")
require("config.plugins.lualine") require("config.plugins.lualine")
require("config.plugins.navic") require("config.plugins.navic")

View File

@ -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
}

View File

@ -8,6 +8,9 @@ return {
{ {
"lewis6991/gitsigns.nvim" "lewis6991/gitsigns.nvim"
}, },
{
"lewis6991/hover.nvim",
},
{ {
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
}, },