mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:07:35 +00:00
Go back to only format on save for rust and go
This commit is contained in:
parent
da356bba97
commit
098ef45271
@ -30,8 +30,8 @@ local function default_attach(client, bufnr)
|
|||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
augroup lsp_format
|
augroup lsp_format
|
||||||
autocmd!
|
autocmd!
|
||||||
" autocmd BufWritePre *.rs,*.go lua vim.lsp.buf.formatting_sync(nil, 1000)
|
autocmd BufWritePre *.rs,*.go lua vim.lsp.buf.formatting_sync(nil, 1000)
|
||||||
autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync(nil, 1000)
|
" autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync(nil, 1000)
|
||||||
augroup END
|
augroup END
|
||||||
]])
|
]])
|
||||||
elseif client.resolved_capabilities.document_range_formatting then
|
elseif client.resolved_capabilities.document_range_formatting then
|
||||||
|
Loading…
Reference in New Issue
Block a user