From a59beae31aa89b1f31bc49e38ef733c4443719c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 4 Jan 2024 19:02:44 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(nvim):=20deleted?= =?UTF-8?q?=20a=20lot=20of=20stuff=20and=20added=20a=20new=20plugin=20at?= =?UTF-8?q?=20the=20fold=20extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lazy-lock.json | 2 +- .config/nvim/lazyvim.json | 3 +- .../plugins/extras/{ui => editor}/fold.lua | 56 ++----------------- 3 files changed, 7 insertions(+), 54 deletions(-) rename .config/nvim/lua/plugins/extras/{ui => editor}/fold.lua (60%) diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index c6897886..ee3e461f 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -123,7 +123,7 @@ "telescope-luasnip.nvim": { "branch": "master", "commit": "2ef7da3a363890686dbaad18ddbf59177cfe4f78" }, "telescope-undo.nvim": { "branch": "main", "commit": "d3afc1c105535a90caec092ce27a113f77ba7b84" }, "telescope-zoxide": { "branch": "main", "commit": "68966349aa1b8e9ade403e18479ecf79447389a7" }, - "telescope.nvim": { "branch": "master", "commit": "8b56e9bb2d0b8750c2f8cd4efe9738e3c066889b" }, + "telescope.nvim": { "branch": "master", "commit": "87e92ea31b2b61d45ad044cf7b2d9b66dad2a618" }, "text-case.nvim": { "branch": "main", "commit": "51fba4b76ff39e2a3264a7201be3c9310cfcdb58" }, "theme-loader.nvim": { "branch": "master", "commit": "ad8774ec8267a447d469b4e6603b43f49b946e53" }, "todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" }, diff --git a/.config/nvim/lazyvim.json b/.config/nvim/lazyvim.json index 493528fd..7b64dd04 100644 --- a/.config/nvim/lazyvim.json +++ b/.config/nvim/lazyvim.json @@ -88,5 +88,4 @@ "NEWS.md": "2123" }, "version": 2 -} - +} \ No newline at end of file diff --git a/.config/nvim/lua/plugins/extras/ui/fold.lua b/.config/nvim/lua/plugins/extras/editor/fold.lua similarity index 60% rename from .config/nvim/lua/plugins/extras/ui/fold.lua rename to .config/nvim/lua/plugins/extras/editor/fold.lua index af1c521d..cbdbd223 100644 --- a/.config/nvim/lua/plugins/extras/ui/fold.lua +++ b/.config/nvim/lua/plugins/extras/editor/fold.lua @@ -1,48 +1,4 @@ return { - { - "lewis6991/gitsigns.nvim", - opts = { - signs = { - add = { text = "┃" }, - change = { text = "┃" }, - delete = { text = "󱈸" }, - topdelete = { text = "󱈸" }, - changedelete = { text = "┃" }, - untracked = { text = "┇" }, - }, - signcolumn = true, - numhl = true, - }, - }, - { - "neovim/nvim-lspconfig", - init = function() - local keys = require("lazyvim.plugins.lsp.keymaps").get() - keys[#keys + 1] = { "K", false } - end, - }, - { -- better statuscolumn - "luukvbaal/statuscol.nvim", - event = { "LazyFile" }, - opts = function() - local builtin = require("statuscol.builtin") - return { - ft_ignore = { "neo-tree", "neo-tree-popup", "alpha", "lazy", "mason" }, - segments = { - { text = { builtin.lnumfunc }, click = "v:lua.ScLa" }, - { - sign = { name = { "Diagnostic*" }, text = { ".*" }, maxwidth = 1, colwidth = 1, auto = true }, - click = "v:lua.ScSa", - }, - { text = { builtin.foldfunc, " " }, click = "v:lua.ScFa" }, - }, - } - end, - init = function() end, - config = function(_, opts) - require("statuscol").setup(opts) - end, - }, { -- better fold "kevinhwang91/nvim-ufo", event = { "LazyFile" }, @@ -103,13 +59,11 @@ return { end, config = function(_, opts) require("ufo").setup(opts) - - local map = require("lazyvim.util").safe_keymap_set - map("n", "K", function() - if not require("ufo").peekFoldedLinesUnderCursor() then - vim.lsp.buf.hover() - end - end, { desc = "Peek folded lines under cursor or hover" }) end, }, + { + "chrisgrieser/nvim-origami", + event = { "LazyFile" }, + opts = {}, + }, }