Changed the depricated functrion formatting to format
Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
This commit is contained in:
parent
e92fd61e80
commit
b29c8fe727
@ -637,8 +637,8 @@ au BufNewFile,BufRead *.mikrotik setfiletype routeros
|
|||||||
au BufNewFile,BufRead,BufWritePre *.ebuild let g:shfmt_extra_args = '-ci -sr -s'
|
au BufNewFile,BufRead,BufWritePre *.ebuild let g:shfmt_extra_args = '-ci -sr -s'
|
||||||
|
|
||||||
" Terrafrom
|
" Terrafrom
|
||||||
autocmd BufWritePre *.tf lua vim.lsp.buf.formatting_sync()
|
autocmd BufWritePre *.tf lua vim.lsp.buf.format()
|
||||||
autocmd BufWritePre *.tfvars lua vim.lsp.buf.formatting_sync()
|
autocmd BufWritePre *.tfvars lua vim.lsp.buf.format()
|
||||||
|
|
||||||
" Automatically deletes all trailing whitespace and newlines at end of file on save.
|
" Automatically deletes all trailing whitespace and newlines at end of file on save.
|
||||||
autocmd BufWritePre * %s/\s\+$//e
|
autocmd BufWritePre * %s/\s\+$//e
|
||||||
|
Loading…
Reference in New Issue
Block a user