Helpview provides quite a few features such as,
$
).And a lot more to come.
vimdoc
(install it via :TSInstall vimdoc
if you use nvim-treesitter
).[!CAUTION] Lazy loading isn't necessary for this plugin and is therefore discouraged.
For lazy.lua
users:
{
"OXY2DEV/helpview.nvim",
lazy = false, -- Recommended
-- In case you still want to lazy load
-- ft = "help",
dependencies = {
"nvim-treesitter/nvim-treesitter"
}
}
For lazy/helpview.lua
users:
return {
"OXY2DEV/helpview.nvim",
lazy = false, -- Recommended
-- In case you still want to lazy load
-- ft = "help",
dependencies = {
"nvim-treesitter/nvim-treesitter"
}
}
local MiniDeps = require("mini.deps");
MiniDeps.add({
source = "OXY2DEV/helpview.nvim",
depends = {
"nvim-treesitter/nvim-treesitter"
}
});
You can install the plugin using :Rocks install
.
:Rocks install helpview.nvim
Check the releases tab to download the latest release.
Installation process for other plugin managers are similar.
Plug "nvim-treesitter/nvim-treesitter";
Plug "OXY2DEV/helpview.nvim";
The plugin comes with the Helpview
command. It has the following sub-commands,
toggleAll
Toggles the plugin itself.
enableAll
Enables the plugin.
disableAll
Disables the plugin
toggle {buffer}
Toggles the plugin on the specific buffer.
enable {buffer}
Enables the plugin on the specific buffer.
disable {buffer}
Disables the plugin on the specific buffer.
Check out the help files(via :h helpview.nvim
) to learn more!
For ease of configuration helpview.nvim
comes with the following highlight groups.
HelpviewCode
, background of code blocks. From Normal
.HelpviewCodeLanguage
, background for language names. From Comment
.HelpviewHeading1
, from DiagnosticOk
.HelpviewHeading2
, from DiagnosticHint
.HelpviewHeading3
, from DiagnosticInfo
.HelpviewHeading4
, from Special
.HelpviewGradient1
, from Normal
.HelpviewGradient2
HelpviewGradient3
HelpviewGradient4
HelpviewGradient5
HelpviewGradient6
HelpviewGradient7
HelpviewGradient8
HelpviewGradient9
HelpviewGradient10
, from Tag
.HelpviewTaglink
, from Title
.HelpviewOptionlink
, from Tag
.HelpviewMentionlink
, from Title
.HelpviewTitle
, from DiagnosticWarn
.