Last active
August 24, 2018 14:46
-
-
Save lrlna/4a22c80610028b43267ddb9cc88b6edd to your computer and use it in GitHub Desktop.
learnings in rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plugin 'autozimu/LanguageClient-neovim' " Language Server | |
Plugin 'rust-lang/rust.vim' " rust land vim plugin | |
" Language Server | |
" --------------- | |
" | |
let g:LanguageClient_serverCommands = { | |
\ 'rust': ['rustup', 'run', 'nightly', 'rls'] | |
\ } | |
let g:LanguageClient_loggingLevel = 'DEBUG' | |
" Rust | |
" ---- | |
" | |
au BufRead,BufNewFile *.rs set filetype=rust | |
let g:rustfmt_autosave = 1 | |
let g:rust_recommended_style = 0 | |
augroup filetype_rust | |
autocmd! | |
autocmd BufReadPost *.rs setlocal filetype=rust | |
setl sw=2 sts=2 et | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment