Update preview_toggle name

This commit is contained in:
simrat39
2021-08-20 19:11:24 -07:00
parent a2e4a20308
commit 079f39607a
4 changed files with 26 additions and 26 deletions

View File

@@ -41,7 +41,7 @@ vim.g.symbols_outline = {
goto_location = "<Cr>",
focus_location = "o",
hover_symbol = "<C-space>",
preview_symbol = "K",
toggle_preview = "K",
rename_symbol = "r",
code_actions = "a",
},
@@ -103,16 +103,16 @@ vim.g.symbols_outline = {
### Default keymaps
| Key | Action |
| ---------- | -------------------------------------------------- |
| Escape | Close outline |
| Enter | Go to symbol location in code |
| o | Go to symbol location in code without losing focus |
| Ctrl+Space | Hover current symbol |
| K | Toggles the current symbol preview |
| r | Rename symbol |
| a | Code actions |
| ? | Show help message |
| Key | Action |
| ---------- | ------------------------------------------------------------------ |
| Escape | Close outline |
| Enter | Go to symbol location in code |
| o | Go to symbol location in code without losing focus |
| Ctrl+Space | Hover current symbol |
| K | Toggles the current symbol preview (Only when auto_preview is off) |
| r | Rename symbol |
| a | Code actions |
| ? | Show help message |
### Highlights
| Highlight | Purpose |

View File

@@ -58,7 +58,7 @@ or skip this section entirely if you want to roll with the defaults.
goto_location = "<Cr>",
focus_location = "o",
hover_symbol = "<C-space>",
preview_symbol = "K",
toggle_preview = "K",
rename_symbol = "r",
code_actions = "a",
},
@@ -218,8 +218,8 @@ symbol_blacklist
================================================================================
5. COMMANDS *symbols-outline-commands*
| Command | Description |
| ---------------------- | ---------------------- |
| Command | Description |
| -------------------- | ---------------------- |
| `:SymbolsOutline` | Toggle symbols outline |
| `:SymbolsOutlineOpen` | Open symbols outline |
| `:SymbolsOutlineClose` | Close symbols outline |
@@ -227,16 +227,16 @@ symbol_blacklist
================================================================================
6. DEFAULT KEYMAPS *symbols-outline-default_keymaps*
| Key | Action |
| ---------- | -------------------------------------------------- |
| Escape | Close outline |
| Enter | Go to symbol location in code |
| o | Go to symbol location in code without losing focus |
| Ctrl+Space | Hover current symbol |
| K | Toggles the current symbol preview |
| r | Rename symbol |
| a | Code actions |
| ? | Show help message |
| Key | Action |
| ---------- | ------------------------------------------------------------------ |
| Escape | Close outline |
| Enter | Go to symbol location in code |
| o | Go to symbol location in code without losing focus |
| Ctrl+Space | Hover current symbol |
| K | Toggles the current symbol preview (Only when auto_preview is off) |
| r | Rename symbol |
| a | Code actions |
| ? | Show help message |
================================================================================
7. HIGHLIGHTS *symbols-outline-highlights*

View File

@@ -217,7 +217,7 @@ local function setup_keymaps(bufnr)
nmap(config.options.keymaps.hover_symbol,
":lua require('symbols-outline.hover').show_hover()<Cr>")
-- preview symbol
nmap(config.options.keymaps.preview_symbol,
nmap(config.options.keymaps.toggle_preview,
":lua require('symbols-outline.preview').toggle()<Cr>")
-- rename symbol
nmap(config.options.keymaps.rename_symbol,

View File

@@ -16,7 +16,7 @@ local defaults = {
goto_location = "<Cr>",
focus_location = "o",
hover_symbol = "<C-space>",
preview_symbol = "K",
toggle_preview = "K",
rename_symbol = "r",
code_actions = "a",
show_help = "?",