diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2018-07-19 16:24:38 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2018-07-19 16:24:38 +0200 |
commit | 26eb230ead5149d3f98a8fafef2d71eaaa013e92 (patch) | |
tree | c148824ea5061df71d66a45e19c77e6b5a0e3732 | |
parent | d28d09fe6613972f01014dfeb10344aee32c4ff6 (diff) | |
download | dotfiles-26eb230ead5149d3f98a8fafef2d71eaaa013e92.tar.xz |
nvim: Add RustFmt bindings
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | nvim/init.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nvim/init.vim b/nvim/init.vim index a54b1ec..042aade 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -49,6 +49,11 @@ let g:LanguageClient_serverCommands = { let g:LanguageClient_autoStart = 1 nnoremap <silent> <Leader>f :call LanguageClient_textDocument_formatting()<CR> +" rust.vim +let g:rust_clip_command = 'xclip -selection clipboard' +vnoremap <Leader>= :'<,'>RustFmtRange<CR> +nnoremap <Leader>= :RustFmt<CR> + """ " NVim settings |