1
0
Fork 0

try to fix format

This commit is contained in:
Felipe 2023-04-17 19:38:59 -04:00
parent 68f82e8b13
commit 9b261528e7
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

@ -166,14 +166,10 @@ local servers = {
-- Auto format on save
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
callback = function()
cmd("Format")
vim.lsp.buf.format({ async = false })
end,
})
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
callback = function()
cmd("FormatWriteLock")
end,
})
---- Plugins ----
-- Go