Marco
5381e06eb9
Now, before a file is saved, we call the vim api format() function which formats the content of the file.
6 lines
127 B
Lua
6 lines
127 B
Lua
vim.api.nvim_create_autocmd('BufWritePre', {
|
|
callback = function()
|
|
vim.lsp.buf.format { async = false }
|
|
end
|
|
})
|