From b9991da218e97871972b0beace8ef5878ac96c22 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 4 Jan 2025 21:45:28 -0800 Subject: [PATCH] feat: diffview.nvim --- nix/neovim-overlay.nix | 1 + nvim/lua/plugins/ui/diffview-nvim.lua | 17 +++++++++++++++++ nvim/lua/plugins/ui/init.lua | 1 + 3 files changed, 19 insertions(+) create mode 100644 nvim/lua/plugins/ui/diffview-nvim.lua diff --git a/nix/neovim-overlay.nix b/nix/neovim-overlay.nix index d264b89..52f913a 100644 --- a/nix/neovim-overlay.nix +++ b/nix/neovim-overlay.nix @@ -49,6 +49,7 @@ with final.pkgs.lib; let indent-blankline-nvim mini-animate nvim-treesitter-context + diffview-nvim # Editor neo-tree-nvim diff --git a/nvim/lua/plugins/ui/diffview-nvim.lua b/nvim/lua/plugins/ui/diffview-nvim.lua new file mode 100644 index 0000000..d8cceb7 --- /dev/null +++ b/nvim/lua/plugins/ui/diffview-nvim.lua @@ -0,0 +1,17 @@ +return { + 'diffview.nvim', + cmd = { + 'DiffviewOpen', + 'DiffviewClose', + 'DiffviewToggleFiles', + 'DiffviewFocusFiles', + 'DiffviewRefresh', + 'DiffviewFileHistory', + }, + before = function() + require('lz.n').trigger_load({ 'mini.icons' }) + end, + after = function() + require('diffview').setup({}) + end, +} diff --git a/nvim/lua/plugins/ui/init.lua b/nvim/lua/plugins/ui/init.lua index 61dfebe..843c4dd 100644 --- a/nvim/lua/plugins/ui/init.lua +++ b/nvim/lua/plugins/ui/init.lua @@ -3,6 +3,7 @@ local req = MarleyVim.local_require('plugins.ui') return { req('alpha-nvim'), req('bufferline-nvim'), + req('diffview-nvim'), req('indent-blankline-nvim'), req('lualine-nvim'), req('mini-animate'),