added symbols-outline.nvim
This commit is contained in:
parent
c9533643f5
commit
657913ee29
|
@ -76,7 +76,7 @@ vim.cmd 'colorscheme moonfly'
|
||||||
--keyboard mappings
|
--keyboard mappings
|
||||||
local opts = { noremap=true, silent=true }
|
local opts = { noremap=true, silent=true }
|
||||||
--toggle spell check
|
--toggle spell check
|
||||||
map('n', '<leader>ss', ':setlocal spell!<CR>', opts)
|
map('n', '<leader>sp', ':setlocal spell!<CR>', opts)
|
||||||
--[[ --easily create splits
|
--[[ --easily create splits
|
||||||
map('n', '<leader>|', ':vs<CR>', opts) ]]
|
map('n', '<leader>|', ':vs<CR>', opts) ]]
|
||||||
--[[ map('n', '<leader>-', ':sp<CR>', opts)
|
--[[ map('n', '<leader>-', ':sp<CR>', opts)
|
||||||
|
@ -91,6 +91,8 @@ vim.cmd 'colorscheme moonfly'
|
||||||
map('', '<leader>h', ':nohls<CR>', opts)
|
map('', '<leader>h', ':nohls<CR>', opts)
|
||||||
--open nvim-tree with leader+t
|
--open nvim-tree with leader+t
|
||||||
map('n', '<leader>t', ':NvimTreeToggle<CR>', opts)
|
map('n', '<leader>t', ':NvimTreeToggle<CR>', opts)
|
||||||
|
--open symbols-outline with leader+s
|
||||||
|
map('n', '<leader>o', ':SymbolsOutline<CR>', opts)
|
||||||
--telescope stuff
|
--telescope stuff
|
||||||
map('n', '<leader>ff', ':lua require "telescope".extensions.file_browser.file_browser()<CR>', opts)
|
map('n', '<leader>ff', ':lua require "telescope".extensions.file_browser.file_browser()<CR>', opts)
|
||||||
map('n', '<leader>fg', ':Telescope live_grep<CR>', opts)
|
map('n', '<leader>fg', ':Telescope live_grep<CR>', opts)
|
||||||
|
@ -110,4 +112,4 @@ vim.cmd 'colorscheme moonfly'
|
||||||
map('n', 'gf', ':TablineBufferNext<CR>', opts)
|
map('n', 'gf', ':TablineBufferNext<CR>', opts)
|
||||||
map('n', 'gF', ':TablineBufferPrevious<CR>', opts)
|
map('n', 'gF', ':TablineBufferPrevious<CR>', opts)
|
||||||
--gitsigns
|
--gitsigns
|
||||||
map('n', '<leader>hl', ':Gitsigns toggle_current_line_blame<CR>', opts)
|
map('n', '<leader>bl', ':Gitsigns toggle_current_line_blame<CR>', opts)
|
||||||
|
|
|
@ -18,7 +18,7 @@ return require('packer').startup(function(use)
|
||||||
ensure_installed='maintained',
|
ensure_installed='maintained',
|
||||||
highlight={enable=true},
|
highlight={enable=true},
|
||||||
indent={enable=true},
|
indent={enable=true},
|
||||||
incremental_selection={enable=true},
|
incremental_selection={enable=true}
|
||||||
}end,
|
}end,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,13 @@ return require('packer').startup(function(use)
|
||||||
|
|
||||||
--UI stuff
|
--UI stuff
|
||||||
|
|
||||||
|
use {'simrat39/symbols-outline.nvim',
|
||||||
|
config=function() vim.g.symbols_outline={
|
||||||
|
width=25,
|
||||||
|
relative_width=false
|
||||||
|
}end
|
||||||
|
}
|
||||||
|
|
||||||
use 'yamatsum/nvim-cursorline'
|
use 'yamatsum/nvim-cursorline'
|
||||||
|
|
||||||
use {'stevearc/dressing.nvim',
|
use {'stevearc/dressing.nvim',
|
||||||
|
|
Loading…
Reference in a new issue