Skip to content

Instantly share code, notes, and snippets.

@lrlna
Last active August 24, 2018 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrlna/4a22c80610028b43267ddb9cc88b6edd to your computer and use it in GitHub Desktop.
Save lrlna/4a22c80610028b43267ddb9cc88b6edd to your computer and use it in GitHub Desktop.
learnings in rust
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