aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2018-07-19 16:24:38 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2018-07-19 16:24:38 +0200
commit26eb230ead5149d3f98a8fafef2d71eaaa013e92 (patch)
treec148824ea5061df71d66a45e19c77e6b5a0e3732
parentd28d09fe6613972f01014dfeb10344aee32c4ff6 (diff)
downloaddotfiles-26eb230ead5149d3f98a8fafef2d71eaaa013e92.tar.xz
nvim: Add RustFmt bindings
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--nvim/init.vim5
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