nvim: after/ftplugin/rust: Format on save
This commit is contained in:
parent
49d126e023
commit
9b00a19b52
1 changed files with 2 additions and 0 deletions
|
@ -6,3 +6,5 @@ nnoremap <buffer> cbc :Dispatch! cargo clean<CR>
|
||||||
nnoremap <buffer> cbd :Dispatch! cargo doc<CR>
|
nnoremap <buffer> cbd :Dispatch! cargo doc<CR>
|
||||||
nnoremap <buffer> cbD :Dispatch! cargo doc --open<CR>
|
nnoremap <buffer> cbD :Dispatch! cargo doc --open<CR>
|
||||||
nnoremap <buffer> cbu :Dispatch! cargo update<CR>
|
nnoremap <buffer> cbu :Dispatch! cargo update<CR>
|
||||||
|
|
||||||
|
autocmd! BufWritePre <buffer> :lua vim.lsp.buf.format({async=true})
|
||||||
|
|
Loading…
Reference in a new issue