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'),