diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-08-08 13:08:44 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-08-08 13:08:44 +0530 |
| commit | 8ec50e55a45af1706d40eff292db4541b6fcc261 (patch) | |
| tree | 6b4cb54d638765cc0c3178984a6ec18af4a3a7e4 /init.lua | |
| parent | b955a603c27ffb3869901b1899303b936816afcf (diff) | |
| download | null-browser-8ec50e55a45af1706d40eff292db4541b6fcc261.tar.gz null-browser-8ec50e55a45af1706d40eff292db4541b6fcc261.zip | |
Embed docs as null://docs + web.help api
Diffstat (limited to '')
| -rw-r--r-- | init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -64,6 +64,15 @@ require 'null-browser.extras.statusline'.init { decoration = web.decorations.bottom, } + +web.keymap.set('n', '<c-h>', function() + local symbols = web.help.get_items() + menu:select(symbols, { select_last_line = true }, function(err, selection) + if err then return end + web.help.show(web.utils.string_trim(selection)) + end) +end) + local hints = require 'null-browser.extras.hints' hints.init() web.keymap.set('n', 'f', function() hints.start('a[href], button', hints.action.open_in_view) end) |
