replace vim-fugitive with neogit and diffview
This commit is contained in:
parent
39820d8048
commit
a0af7d34f9
5 changed files with 21 additions and 4 deletions
3
lua/plugins/diffview.lua
Normal file
3
lua/plugins/diffview.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
'sindrets/diffview.nvim'
|
||||
}
|
||||
|
|
@ -9,6 +9,11 @@ local format_on_save = function(client, bufnr)
|
|||
group = augroup,
|
||||
buffer = bufnr,
|
||||
callback = function()
|
||||
-- prevents format from being included in the undo history
|
||||
-- this way the cursor doesn't jump around the file when
|
||||
-- undoing
|
||||
vim.cmd("silent! undojoin")
|
||||
|
||||
vim.lsp.buf.format({
|
||||
bufnr = bufnr,
|
||||
async = false,
|
||||
|
|
|
|||
7
lua/plugins/neogit.lua
Normal file
7
lua/plugins/neogit.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
"NeogitOrg/neogit",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
config = true
|
||||
}
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
return {
|
||||
"tpope/vim-fugitive"
|
||||
}
|
||||
return {}
|
||||
-- return {
|
||||
-- "tpope/vim-fugitive"
|
||||
-- }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue