try to fix format
This commit is contained in:
parent
68f82e8b13
commit
9b261528e7
1 changed files with 1 additions and 5 deletions
6
init.lua
6
init.lua
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue