Created
March 26, 2019 19:20
-
-
Save LesnyRumcajs/5e0d7258dd24bbefce6e95abb3dc403b to your computer and use it in GitHub Desktop.
neovim init file
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
if &compatible | |
set nocompatible | |
endif | |
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/plugged | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'scrooloose/syntastic' | |
Plug 'vim-airline/vim-airline' | |
Plug 'rust-lang/rust.vim' | |
Plug 'racer-rust/vim-racer' | |
" Initialize plugin system | |
call plug#end() | |
filetype plugin indent on | |
syntax enable | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
set hidden | |
let g:racer_cmd = "racer" | |
let g:racer_experimental_completer = 1 | |
au FileType rust nmap gd <Plug>(rust-def) | |
au FileType rust nmap gs <Plug>(rust-def-split) | |
au FileType rust nmap gx <Plug>(rust-def-vertical) | |
au FileType rust nmap <leader>gd <Plug>(rust-doc) | |
map <C-n> :NERDTreeToggle<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment