Add symbols outline plugin. (#451)

This commit is contained in:
dario 2021-06-03 02:22:49 +01:00 committed by GitHub
parent ab8d424c54
commit 5dd17038c9
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions

View file

@ -30,6 +30,7 @@ if O.extras then
require('lv-dial')
require('lv-hop')
require('lv-colorizer')
require('lv-symbols-outline')
end

View file

@ -0,0 +1,15 @@
vim.g.symbols_outline = {
highlight_hovered_item = true,
show_guides = true,
auto_preview = true,
position = 'right',
keymaps = {
close = "<Esc>",
goto_location = "<Cr>",
focus_location = "o",
hover_symbol = "<C-space>",
rename_symbol = "r",
code_actions = "a",
},
lsp_blacklist = {},
}

View file

@ -140,6 +140,8 @@ return require("packer").startup(function(use)
require_plugin('nvim-colorizer.lua')
use {'windwp/nvim-spectre', opt = true}
require_plugin('windwp/nvim-spectre')
use {'simrat39/symbols-outline.nvim', opt = true}
require_plugin('symbols-outline.nvim')
-- folke/todo-comments.nvim
-- gennaro-tedesco/nvim-jqx
-- TimUntersberger/neogit