Merge branch 'master' of github.com:hedyhli/symbols-outline.nvim
This commit is contained in:
@@ -160,7 +160,25 @@ Lazy:
|
||||
{ desc = "SymbolsOutline" })
|
||||
|
||||
require("symbols-outline").setup {
|
||||
-- Your setup opts here (optional)
|
||||
-- Your setup opts here (leave empty to use defaults)
|
||||
}
|
||||
end,
|
||||
},
|
||||
<
|
||||
|
||||
Lazy with lazy-loading:
|
||||
|
||||
>lua
|
||||
{
|
||||
"simrat39/symbols-outline.nvim",
|
||||
cmd = { "SymbolsOutline", "SymbolsOutlineOpen", "SymbolsOutlineClose" },
|
||||
keys = { "<leader>tt" },
|
||||
config = function()
|
||||
-- Example mapping to toggle symbols-outline
|
||||
vim.keymap.set("n", "<leader>tt", "<cmd>SymbolsOutline<CR>",
|
||||
{ desc = "SymbolsOutline" })
|
||||
require("symbols-outline").setup {
|
||||
-- Your setup opts here (leave empty to use defaults)
|
||||
}
|
||||
end,
|
||||
},
|
||||
@@ -169,13 +187,13 @@ Lazy:
|
||||
|
||||
SETUP *symbols-outline-symbols-outline.nvim-setup*
|
||||
|
||||
Put the setup call in your init.lua or any lua file that is sourced.
|
||||
Call the setup function with your configuration options.
|
||||
|
||||
**NOTE**: A call to `.setup()` is _required_ for this plugin to work!
|
||||
(simrat39/symbols-outline.nvim#213)
|
||||
Note that a call to `.setup()` is _required_ for this plugin to work
|
||||
(simrat39/symbols-outline.nvim#213).
|
||||
|
||||
>lua
|
||||
require("symbols-outline").setup()
|
||||
require("symbols-outline").setup({})
|
||||
<
|
||||
|
||||
|
||||
@@ -327,7 +345,7 @@ COMMANDS *symbols-outline-symbols-outline.nvim-commands*
|
||||
|
||||
LUA ~
|
||||
|
||||
>
|
||||
>lua
|
||||
require'symbols-outline'.toggle_outline()
|
||||
require'symbols-outline'.open_outline()
|
||||
require'symbols-outline'.close_outline()
|
||||
|
||||
Reference in New Issue
Block a user