aboutsummaryrefslogtreecommitdiffstats
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-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