From 26eb230ead5149d3f98a8fafef2d71eaaa013e92 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 19 Jul 2018 16:24:38 +0200 Subject: nvim: Add RustFmt bindings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nvim/init.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nvim') 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 f :call LanguageClient_textDocument_formatting() +" rust.vim +let g:rust_clip_command = 'xclip -selection clipboard' +vnoremap = :'<,'>RustFmtRange +nnoremap = :RustFmt + """ " NVim settings -- cgit v1.2.3-70-g09d2