diffview
This commit is contained in:
@@ -43,6 +43,8 @@ Git shortcuts:
|
||||
|
||||
- `:Git` to run commands directly (`:Git status`, `:Git log --oneline`)
|
||||
- `<leader>lg` open LazyGit
|
||||
- `<leader>dv` open Diffview
|
||||
- `<leader>dc` close Diffview
|
||||
|
||||
Toggle shortcuts:
|
||||
|
||||
|
||||
@@ -26,6 +26,8 @@ map("n", "<leader>fg", telescope_picker("live_grep"), { desc = "live grep" })
|
||||
map("n", "<leader>fb", telescope_picker("buffers"), { desc = "find buffers" })
|
||||
map("n", "<leader>fh", telescope_picker("help_tags"), { desc = "help tags" })
|
||||
map("n", "<leader>lg", "<Cmd>LazyGit<CR>", { desc = "open lazygit" })
|
||||
map("n", "<leader>dv", "<Cmd>DiffviewOpen<CR>", { desc = "open diffview" })
|
||||
map("n", "<leader>dc", "<Cmd>DiffviewClose<CR>", { desc = "close diffview" })
|
||||
map("n", "<leader>tw", require("romanzy.custom.wrap").toggle, { desc = "toggle soft wrap" })
|
||||
|
||||
map("n", "<leader>sv", "<Cmd>vs<CR>", { desc = "split vertical" })
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require("romanzy.plugins.rose-pine")
|
||||
require("romanzy.plugins.mini")
|
||||
require("romanzy.plugins.lazygit")
|
||||
require("romanzy.plugins.diffview")
|
||||
require("romanzy.plugins.oil")
|
||||
require("romanzy.plugins.telescope")
|
||||
require("romanzy.plugins.nvim-treesitter")
|
||||
|
||||
6
nvim/.config/nvim/lua/romanzy/plugins/diffview.lua
Normal file
6
nvim/.config/nvim/lua/romanzy/plugins/diffview.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
vim.pack.add({
|
||||
{
|
||||
src = "https://github.com/sindrets/diffview.nvim",
|
||||
name = "diffview.nvim",
|
||||
},
|
||||
})
|
||||
@@ -8,6 +8,10 @@
|
||||
"rev": "619363c30309d29ffa631e67c8183f2a72caa373",
|
||||
"src": "https://github.com/stevearc/conform.nvim"
|
||||
},
|
||||
"diffview.nvim": {
|
||||
"rev": "4516612fe98ff56ae0415a259ff6361a89419b0a",
|
||||
"src": "https://github.com/sindrets/diffview.nvim"
|
||||
},
|
||||
"lazygit.nvim": {
|
||||
"rev": "a04ad0dbc725134edbee3a5eea29290976695357",
|
||||
"src": "https://github.com/kdheepak/lazygit.nvim"
|
||||
|
||||
Reference in New Issue
Block a user