aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-01-01 15:03:05 -0600
committerToby Vincent <tobyv13@gmail.com>2023-01-01 15:03:05 -0600
commit6b670364c243b84e09ac091e2ad97a88f4ad0c03 (patch)
tree3c8947993eb685235701e42b88012ea976fa86c6 /nvim/.config
parentf4239df1e9a71a45cee491c4fc7a05f379620542 (diff)
fix(nvim): remove diffview
Diffstat (limited to 'nvim/.config')
-rw-r--r--nvim/.config/nvim/lua/tobyvin/plugins/diffview.lua34
1 files changed, 0 insertions, 34 deletions
diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/diffview.lua b/nvim/.config/nvim/lua/tobyvin/plugins/diffview.lua
deleted file mode 100644
index 1689a8d..0000000
--- a/nvim/.config/nvim/lua/tobyvin/plugins/diffview.lua
+++ /dev/null
@@ -1,34 +0,0 @@
-local M = {
- "sindrets/diffview.nvim",
- dependencies = {
- "nvim-lua/plenary.nvim",
- "kyazdani42/nvim-web-devicons",
- },
-}
-
-function M.config()
- local diffview = require("diffview")
-
- local file_history = function()
- require("diffview").file_history(nil, vim.fn.bufname())
- end
-
- local workspace_history = function()
- require("diffview").file_history()
- end
-
- local selection_history = function()
- local first = vim.api.nvim_buf_get_mark(0, "<")[1]
- local last = vim.api.nvim_buf_get_mark(0, ">")[1]
- require("diffview").file_history({ first, last })
- end
-
- diffview.setup()
-
- vim.keymap.set("n", "<leader>gd", diffview.open, { desc = "diffview" })
- vim.keymap.set("n", "<leader>gh", file_history, { desc = "file history" })
- vim.keymap.set("n", "<leader>gH", workspace_history, { desc = "workspace history" })
- vim.keymap.set("v", "<leader>gh", selection_history, { desc = "selection history" })
-end
-
-return M