From bc5bb49a48ffdd78b9b6ae0504ab1a63c180997c Mon Sep 17 00:00:00 2001 From: arnaucube Date: Mon, 15 Jul 2019 20:22:30 +0200 Subject: [PATCH] nvim config: auto rustfmt on write file --- init.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.vim b/init.vim index 3aee351..86ef339 100644 --- a/init.vim +++ b/init.vim @@ -30,6 +30,7 @@ Plug 'rust-lang/rust.vim' set hidden let g:racer_cmd = "/home/user/.cargo/bin/racer" let g:racer_experimental_completer = 1 +let g:rustfmt_autosave = 1 " javascript @@ -197,5 +198,11 @@ tnoremap jk set scrolloff=5 " keep at least 5 lines above/below set sidescrolloff=5 " keep at least 5 lines left/right +"" circom syntax +au BufRead,BufNewFile *.circom set filetype=circom +au BufRead,BufNewFile *.circuit set filetype=go-snark-circuit + +" for file watching +set backupcopy=yes colorscheme molokai