feat(auto_preview): Experimental auto preview and auto hover support
#10
This commit is contained in:
@@ -26,6 +26,7 @@ Define a global variable `symbols_outline` as follows:
|
||||
vim.g.symbols_outline = {
|
||||
highlight_hovered_item = true,
|
||||
show_guides = true,
|
||||
auto_preview = false, -- experimental
|
||||
position = 'right',
|
||||
keymaps = {
|
||||
close = "<Esc>",
|
||||
@@ -38,6 +39,7 @@ vim.g.symbols_outline = {
|
||||
lsp_blacklist = {},
|
||||
}
|
||||
```
|
||||
or
|
||||
|
||||
```vim
|
||||
" init.vim
|
||||
@@ -45,6 +47,7 @@ let g:symbols_outline = {
|
||||
\ "highlight_hovered_item": v:true,
|
||||
\ "show_guides": v:true,
|
||||
\ "position": 'right',
|
||||
\ "auto_preview": v:false,
|
||||
\ "keymaps": {
|
||||
\ "close": "<Esc>",
|
||||
\ "goto_location": "<Cr>",
|
||||
@@ -62,6 +65,7 @@ let g:symbols_outline = {
|
||||
| highlight_hovered_item | Whether to highlight the currently hovered symbol (high cpu usage) | boolean | true |
|
||||
| show_guides | Wether to show outline guides | boolean | true |
|
||||
| position | Where to open the split window | 'right' or 'left' | 'right' |
|
||||
| auto_preview | Experimenatl, to show a preview of the code on hover | boolean | true |
|
||||
| keymaps | Which keys do what | table (dictionary) | [here](#default-keymaps) |
|
||||
| lsp_blacklist | Which lsp clients to ignore | table (array) | {} |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user