call plug#begin() Plug 'godlygeek/tabular' Plug 'plasticboy/vim-markdown' let g:vim_markdown_new_list_item_indent = 2 Plug 'editorconfig/editorconfig-vim' Plug 'tomasiser/vim-code-dark' Plug 'vim-airline/vim-airline' Plug 'mhinz/vim-startify' Plug 'ctrlpvim/ctrlp.vim' Plug 'dense-analysis/ale' Plug 'vim-syntastic/syntastic' Plug 'majutsushi/tagbar' Plug 'preservim/nerdtree' Plug 'jiangmiao/auto-pairs' Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'autozimu/LanguageClient-neovim', { \ 'branch': 'next', \ 'do': 'bash install.sh', \ } Plug 'rust-lang/rust.vim' " Plug 'racer-rust/vim-racer' Plug 'idris-hackers/idris-vim' call plug#end() " General config colorscheme codedark set splitright set number set cursorline set hidden syntax on filetype on filetype plugin indent on let mapleader = ";" nnoremap T :vsplitvertical resize 54terminali " Plugin-related maps nmap :TagbarToggle map :NERDTreeToggle let g:LanguageClient_serverCommands = { \ 'rust': ['rust-analyzer'], \ } nnoremap :call LanguageClient_contextMenu() function LC_maps() if has_key(g:LanguageClient_serverCommands, &filetype) nnoremap K :call LanguageClient#textDocument_hover() nnoremap gd :call LanguageClient#textDocument_definition() nnoremap :call LanguageClient#textDocument_rename() endif endfunction autocmd FileType * call LC_maps() " Plugin-related configs let g:airline#extensions#tabline#buffer_nr_show = 1 let g:airline#extensions#tabline#enabled = 1 let g:deoplete#enable_at_startup = 1 " let g:rustfmt_autosave = 1 let g:racer_experimental_completer = 1