From 8f440709b281f10b9f4e7592cd5149b69ae49bc3 Mon Sep 17 00:00:00 2001 From: Wynd Date: Sat, 4 Jan 2025 00:55:26 +0200 Subject: [PATCH] Added a file symbols outline plugin for neovim --- .config/nvim/lazy-lock.json | 1 + .config/nvim/lua/nvwynd/plugins/editor.lua | 34 ++++++++++++++++++++++ .config/nvim/lua/nvwynd/plugins/util.lua | 19 ------------ 3 files changed, 35 insertions(+), 19 deletions(-) diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 40d2bb5..c0e1939 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -21,6 +21,7 @@ "nvim-treesitter": { "branch": "master", "commit": "2a75d8065cff33216e106b651eb0f58b90375717" }, "nvim-ts-autotag": { "branch": "main", "commit": "1cca23c9da708047922d3895a71032bc0449c52d" }, "nvim-web-devicons": { "branch": "master", "commit": "6317aca1fd86cc8e8c5ad30029ae7640d566cec6" }, + "outline.nvim": { "branch": "main", "commit": "f656ef12a590287cce57f6ee3d46a0604dfb3c14" }, "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "dae2eac9d91464448b584c7949a31df8faefec56" }, "telescope.nvim": { "branch": "master", "commit": "2eca9ba22002184ac05eddbe47a7fe2d5a384dfc" }, diff --git a/.config/nvim/lua/nvwynd/plugins/editor.lua b/.config/nvim/lua/nvwynd/plugins/editor.lua index 235d1ad..9bc57f5 100644 --- a/.config/nvim/lua/nvwynd/plugins/editor.lua +++ b/.config/nvim/lua/nvwynd/plugins/editor.lua @@ -54,4 +54,38 @@ return { vim.o.timeoutlen = 500 end, }, + + { + "echasnovski/mini.map", + version = false, + init = function() + local mini = require("mini.map") + mini.setup({ + integrations = { + mini.gen_integration.builtin_search(), + mini.gen_integration.diagnostic(), + }, + window = { + focusable = true, + width = 20, + winblend = 0, + }, + }) + end, + }, + + { + "hedyhli/outline.nvim", + lazy = true, + cmd = { "Outline", "OutlineOpen" }, + keys = { + { "oo", "Outline", desc = "[O]utline [O]pen" }, + { "of", "OutlineFocus", desc = "[O]utline [F]ocus" }, + }, + opts = { + outline_window = { + width = 20, + }, + }, + }, } diff --git a/.config/nvim/lua/nvwynd/plugins/util.lua b/.config/nvim/lua/nvwynd/plugins/util.lua index 6e5d4af..13052d1 100644 --- a/.config/nvim/lua/nvwynd/plugins/util.lua +++ b/.config/nvim/lua/nvwynd/plugins/util.lua @@ -22,25 +22,6 @@ return { opts = {}, }, - { - "echasnovski/mini.map", - version = false, - init = function() - local mini = require("mini.map") - mini.setup({ - integrations = { - mini.gen_integration.builtin_search(), - mini.gen_integration.diagnostic(), - }, - window = { - focusable = true, - width = 20, - winblend = 0, - }, - }) - end, - }, - { "romainl/vim-cool", init = function() end,