lsp:change deprecated formatting_sync()
This commit is contained in:
parent
addc2544f9
commit
bf03f06c48
1 changed files with 1 additions and 1 deletions
2
init.lua
2
init.lua
|
|
@ -134,7 +134,7 @@ local servers = {
|
||||||
-- overrides the previous calls.
|
-- overrides the previous calls.
|
||||||
|
|
||||||
-- Auto format on save
|
-- Auto format on save
|
||||||
vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.formatting_sync()]]
|
vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.format()]]
|
||||||
|
|
||||||
---- Plugins ----
|
---- Plugins ----
|
||||||
---- ale
|
---- ale
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue