feat(providers): Modular hover-symbol support

This commit is contained in:
hedy
2023-11-27 20:11:16 +08:00
parent 80f76333ba
commit 80165f0472
6 changed files with 49 additions and 84 deletions

View File

@@ -147,13 +147,15 @@ function Sidebar:setup_keymaps()
fold_all = { '_set_all_folded', { true } },
unfold_all = { '_set_all_folded', { false } },
fold_reset = { '_set_all_folded', {} },
hover_symbol = { require('outline.hover').show_hover, {} },
rename_symbol = {
providers.action, { self, 'rename_symbol', { self } }
},
code_actions = {
providers.action, { self, 'code_actions', { self } }
},
hover_symbol = {
providers.action, { self, 'show_hover', { self } }
},
}) do
---@diagnostic disable-next-line param-type-mismatch
self:nmap(name, meth[1], meth[2])