diff --git a/nvim/after/plugin/symbols-outline.lua b/nvim/after/plugin/symbols-outline.lua new file mode 100644 index 0000000..4471017 --- /dev/null +++ b/nvim/after/plugin/symbols-outline.lua @@ -0,0 +1,9 @@ +-- https://github.com/simrat39/symbols-outline.nvim +local status_ok, outline = pcall(require, "symbols-outline") +if not status_ok then + return +end + +outline.setup({ + width = 25, +}) diff --git a/nvim/after/plugin/whichkey.lua b/nvim/after/plugin/whichkey.lua index b8359df..b4eb081 100644 --- a/nvim/after/plugin/whichkey.lua +++ b/nvim/after/plugin/whichkey.lua @@ -13,6 +13,7 @@ local mappings = { h = { "nohlsearch", "No Highlight" }, i = { "silent !open -a iA\\ Writer.app '%:p'", "iA Writer" }, j = { "b#", "Toggle Buffers" }, + o = { "SymbolsOutline", "Symbols Outline" }, p = { "Telescope projects", "Projects" }, q = { "Bdelete!", "Close Buffer" }, s = { diff --git a/nvim/lua/kogakure/plugins.lua b/nvim/lua/kogakure/plugins.lua index 2a14ae9..0e1fea6 100644 --- a/nvim/lua/kogakure/plugins.lua +++ b/nvim/lua/kogakure/plugins.lua @@ -142,6 +142,7 @@ return packer.startup(function(use) use("ray-x/guihua.lua") -- Lua GUI lib use("ray-x/sad.nvim") -- Find & Replace use("gorbit99/codewindow.nvim") -- Minimap + use("simrat39/symbols-outline.nvim") -- Symbols Outline -- Editing Files use("windwp/nvim-autopairs") -- Autopairs, integrates with both cmp and treesitter