Added diffview

This commit is contained in:
2025-02-15 10:05:03 +11:00
parent 82879f5e03
commit f850f5272c
3 changed files with 14 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
"aerial.nvim": { "branch": "master", "commit": "a89f5e39bbbd445242eebdbaac971e0c70ddd3b4" },
"aerial.nvim": { "branch": "master", "commit": "4c57c5016a6553e0c6b5d93ed60e8fb3dfe69517" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
"cellular-automaton.nvim": { "branch": "main", "commit": "1606e9d5d04ff254023c3f3c62842d065708d6d3" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
@@ -10,6 +10,7 @@
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"conform.nvim": { "branch": "master", "commit": "8ed162b0637d4c4f69ebe3e8e49b35662a82e137" },
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
"gitsigns.nvim": { "branch": "main", "commit": "2bc3b472bbc2484214549af4d9f38c127b886a55" },

View File

@@ -0,0 +1,10 @@
return {
"sindrets/diffview.nvim",
config = function()
require("diffview").setup({
vim.keymap.set("n", "<leader>vo", "<cmd>DiffviewOpen<CR>", { desc = "Open Diffview" }),
vim.keymap.set("n", "<leader>vc", "<cmd>DiffviewClose<CR>", { desc = "Close Diffview" }),
vim.keymap.set("n", "<leader>vf", "<cmd>DiffviewToggleFiles<CR>", { desc = "Toggle File pane" }),
})
end,
}

View File

@@ -17,7 +17,8 @@ return {
{ "<leader>t", group = "Telescope" },
{ "<leader>o", group = "Open plugin", icon = { icon = "", color = "yellow" } },
{ "<leader>r", group = "Refactoring", mode = { "n", "x" } },
{ "<leader>v", group = "LSP Actions", icon = { icon = "󰅡" } },
{ "<leader>l", group = "LSP Actions", icon = { icon = "󰅡" } },
{ "<leader>v", group = "Diffview", icon = { icon = "" } },
{ "<leader><leader>", group = "Reload Plugins", icon = { icon = "" } },
{ "<leader><leader>w", "<cmd>Lazy reload which-key.nvim<CR>", desc = "Reload Which-key" },