-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad3a739
commit 23059d3
Showing
8 changed files
with
91 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
---The hover configuration file | ||
local M = {} | ||
|
||
local Log = require("qvim.log") | ||
|
||
---Registers the global configuration scope for hover | ||
function M:init() | ||
local hover = { | ||
active = true, | ||
on_config_done = nil, | ||
keymaps = {}, | ||
options = { | ||
-- hover option configuration | ||
init = function() | ||
-- Require providers | ||
require("hover.providers.lsp") | ||
require("hover.providers.gh") | ||
-- require('hover.providers.gh_user') | ||
-- require('hover.providers.jira') | ||
-- require('hover.providers.man') | ||
-- require('hover.providers.dictionary') | ||
end, | ||
preview_opts = { | ||
border = "single", | ||
}, | ||
-- Whether the contents of a currently open hover window should be moved | ||
-- to a :h preview-window when pressing the hover keymap. | ||
preview_window = false, | ||
title = true, | ||
}, | ||
} | ||
return hover | ||
end | ||
|
||
---The hover setup function. The module will be required by | ||
---this function and it will call the respective setup function. | ||
---A on_config_done function will be called if the plugin implements it. | ||
function M:setup() | ||
local status_ok, hover = pcall(reload, "hover") | ||
if not status_ok then | ||
Log:warn(string.format("The plugin '%s' could not be loaded.", hover)) | ||
return | ||
end | ||
|
||
local _hover = qvim.integrations.hover | ||
hover.setup(_hover.options) | ||
|
||
if _hover.on_config_done then | ||
_hover.on_config_done() | ||
end | ||
end | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
local hop = { | ||
lazy = true, | ||
branch = "v2", | ||
} | ||
|
||
return hop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local hover = { | ||
lazy = false, | ||
} | ||
|
||
return hover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters