From 657913ee29a931fcbc83fe48d35c616104592af4 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Thu, 3 Feb 2022 11:24:03 -0600 Subject: [PATCH] added symbols-outline.nvim --- neovim/.config/nvim/init.lua | 6 ++++-- neovim/.config/nvim/lua/packages.lua | 9 ++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/neovim/.config/nvim/init.lua b/neovim/.config/nvim/init.lua index d8833a6..e6cb1f9 100644 --- a/neovim/.config/nvim/init.lua +++ b/neovim/.config/nvim/init.lua @@ -76,7 +76,7 @@ vim.cmd 'colorscheme moonfly' --keyboard mappings local opts = { noremap=true, silent=true } --toggle spell check - map('n', 'ss', ':setlocal spell!', opts) + map('n', 'sp', ':setlocal spell!', opts) --[[ --easily create splits map('n', '|', ':vs', opts) ]] --[[ map('n', '-', ':sp', opts) @@ -91,6 +91,8 @@ vim.cmd 'colorscheme moonfly' map('', 'h', ':nohls', opts) --open nvim-tree with leader+t map('n', 't', ':NvimTreeToggle', opts) + --open symbols-outline with leader+s + map('n', 'o', ':SymbolsOutline', opts) --telescope stuff map('n', 'ff', ':lua require "telescope".extensions.file_browser.file_browser()', opts) map('n', 'fg', ':Telescope live_grep', opts) @@ -110,4 +112,4 @@ vim.cmd 'colorscheme moonfly' map('n', 'gf', ':TablineBufferNext', opts) map('n', 'gF', ':TablineBufferPrevious', opts) --gitsigns - map('n', 'hl', ':Gitsigns toggle_current_line_blame', opts) + map('n', 'bl', ':Gitsigns toggle_current_line_blame', opts) diff --git a/neovim/.config/nvim/lua/packages.lua b/neovim/.config/nvim/lua/packages.lua index 6d04965..e9c2d62 100644 --- a/neovim/.config/nvim/lua/packages.lua +++ b/neovim/.config/nvim/lua/packages.lua @@ -18,7 +18,7 @@ return require('packer').startup(function(use) ensure_installed='maintained', highlight={enable=true}, indent={enable=true}, - incremental_selection={enable=true}, + incremental_selection={enable=true} }end, } @@ -57,6 +57,13 @@ return require('packer').startup(function(use) --UI stuff + use {'simrat39/symbols-outline.nvim', + config=function() vim.g.symbols_outline={ + width=25, + relative_width=false + }end + } + use 'yamatsum/nvim-cursorline' use {'stevearc/dressing.nvim',