nvim: center buffer after formatting
This commit is contained in:
parent
fb441bc3df
commit
e02802369d
@ -22,6 +22,7 @@ vim.api.nvim_create_autocmd(
|
|||||||
callback = function()
|
callback = function()
|
||||||
vim.cmd("silent !black --quiet %")
|
vim.cmd("silent !black --quiet %")
|
||||||
vim.cmd("edit")
|
vim.cmd("edit")
|
||||||
|
vim.cmd("norm zz")
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user