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
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue