From 0f044067068ab7d288dd4d30134073786d952591 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Sat, 1 Aug 2026 10:25:29 +0800 Subject: [PATCH] neovim: add hunk.nvim --- .../coding/editor/neovim/nvim/lazy-lock.json | 2 ++ .../neovim/nvim/lua/plugins/plugins-setup.lua | 22 +++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/modules/coding/editor/neovim/nvim/lazy-lock.json b/modules/coding/editor/neovim/nvim/lazy-lock.json index 3338fb0..a4edd62 100644 --- a/modules/coding/editor/neovim/nvim/lazy-lock.json +++ b/modules/coding/editor/neovim/nvim/lazy-lock.json @@ -8,6 +8,7 @@ "gitsigns.nvim": { "branch": "main", "commit": "25050e4ed39e628282831d4cbecb1850454ce915" }, "glance.nvim": { "branch": "master", "commit": "bf86d8b79dce808e65fdb6e9269d0b4ed6d2eefc" }, "guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" }, + "hunk.nvim": { "branch": "master", "commit": "c8a8e7b6973576f63e5bf39aa8338d7f37f4dc53" }, "indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" }, "inlay-hints.nvim": { "branch": "master", "commit": "297a65ab9543eb0850c1a55df4bb89e22cfec504" }, "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, @@ -27,6 +28,7 @@ "nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" }, "nvim-treesitter-textobjects": { "branch": "main", "commit": "851e865342e5a4cb1ae23d31caf6e991e1c99f1e" }, "nvim-web-devicons": { "branch": "master", "commit": "dfbfaa967a6f7ec50789bead7ef87e336c1fa63c" }, + "obsidian.nvim": { "branch": "main", "commit": "ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b" }, "outline.nvim": { "branch": "main", "commit": "2a132953b944561d45b52e4541ebfff71934a742" }, "pest.vim": { "branch": "master", "commit": "60cae7ea1beb644ed40081a3ec213ea9061aba09" }, "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" }, diff --git a/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua b/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua index 71af92f..8a2d79b 100644 --- a/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua +++ b/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua @@ -21,7 +21,7 @@ local plugins = { }, { "nvim-lualine/lualine.nvim", - dependencies = { { "nvim-tree/nvim-web-devicons", lazy = true } }, + dependencies = { { "nvim-tree/nvim-web-devicons" } }, config = function() require("lualine").setup(require("plugins.lualine")) end, @@ -178,7 +178,7 @@ local plugins = { { "L3MON4D3/LuaSnip", event = "InsertEnter", - dependencies = { { "rafamadriz/friendly-snippets", lazy = true } }, + dependencies = { { "rafamadriz/friendly-snippets" } }, build = "make install_jsregexp", config = function() require("luasnip").setup(require("plugins.cmp.luasnip")) @@ -353,6 +353,24 @@ local plugins = { }, }, }, + + { + "julienvincent/hunk.nvim", + cmd = { "DiffEditor" }, + dependencies = { { "nvim-tree/nvim-web-devicons" } }, + opts = { + keys = { + global = { + quit = { "q" }, + }, + diff = { + prev_hunk = { "" }, + next_hunk = { "" }, + toggle_focus = {}, + }, + }, + }, + }, }, }