plugins: add symbols-outline

This commit is contained in:
2022-04-17 21:09:48 +08:00
parent 951d29fb43
commit 23283edd60
4 changed files with 23 additions and 3 deletions
+1 -1
View File
@@ -12,5 +12,5 @@ vim.api.nvim_set_keymap('n', '<S-h>', ':BufferLineCyclePrev<CR>', opts)
bufferline.setup({
offsets = {
{ filetype = 'NvimTree', text = 'File Explorer', text_align = 'center' },
}
},
})
+1 -1
View File
@@ -36,5 +36,5 @@ lualine.setup {
lualine_z = {}
},
tabline = {},
extensions = { 'nvim-tree' }
extensions = { 'nvim-tree' },
}
+19 -1
View File
@@ -127,6 +127,12 @@ return packer.startup(function(use)
end,
opt = false
}
use { 'simrat39/symbols-outline.nvim',
cmd = { 'SymbolsOutline', 'SymbolsOutlineOpen', 'SymbolsOutlineClose' },
config = function()
vim.keymap.set('n', '<leader>o', ':SymbolsOutline<CR>', { silent = true })
end,
}
use {
'akinsho/toggleterm.nvim',
config = function()
@@ -152,7 +158,19 @@ return packer.startup(function(use)
vim.cmd [[colorscheme tokyonight]]
end
}
use({
'rose-pine/neovim',
opt = true,
as = 'rose-pine',
tag = 'v1.*',
config = function()
require('rose-pine').setup({
---@usage 'main'|'moon'
dark_variant = 'main',
})
-- vim.cmd('colorscheme rose-pine')
end
})
-- Automatically set up your configuration after cloning packer.nvim,
-- Put this at the end after all plugins
if packer_bootstrap then