From 617b11268d17560f14e644eae9f5401f23b2b6a4 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Thu, 28 Feb 2019 10:31:40 +0100 Subject: [PATCH] neovim: Enable automatic rust formatting --- config/nvim/init.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/nvim/init.vim b/config/nvim/init.vim index cb25087..cb4c6ea 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -25,6 +25,7 @@ Plug 'prabirshrestha/vim-lsp' Plug 'scrooloose/syntastic' Plug 'tpope/vim-sleuth' Plug 'tpope/vim-surround' +Plug 'bfrg/vim-cpp-modern' " Language support Plug 'artur-shaik/vim-javacomplete2' @@ -262,3 +263,6 @@ endfunction "}}} """ vim-javacomplete2 autocmd FileType java setlocal omnifunc=javacomplete#Complete + +""" rust.vim +let g:rustfmt_autosave = 1