mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 20:16:27 +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([[
|
||||
augroup lsp_format
|
||||
autocmd!
|
||||
" 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 *.rs,*.go lua vim.lsp.buf.formatting_sync(nil, 1000)
|
||||
" autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync(nil, 1000)
|
||||
augroup END
|
||||
]])
|
||||
elseif client.resolved_capabilities.document_range_formatting then
|
||||
|
Loading…
Reference in New Issue
Block a user