Update Neovim Config
This commit is contained in:
		| @@ -2,27 +2,40 @@ | |||||||
| map <C-o> :NERDTreeToggle<CR> | map <C-o> :NERDTreeToggle<CR> | ||||||
| map <F8>  :TagbarToggle<CR> | map <F8>  :TagbarToggle<CR> | ||||||
|  |  | ||||||
| " Init Autocomplete | " Required for operations modifying multiple buffers like rename. | ||||||
| inoremap <silent><expr> <c-space> coc#refresh() | set hidden | ||||||
|  |  | ||||||
|  | let g:LanguageClient_serverCommands = { | ||||||
|  | \ 'rust': ['rust-analyzer'] | ||||||
|  | \ } | ||||||
|  |  | ||||||
|  |  | ||||||
| " Navigate Completion List | " Navigate Completion List | ||||||
| inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | inoremap <silent><expr> <Tab>  pumvisible() ? "\<C-n>" : "\<Tab>" | ||||||
| inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" | inoremap <silent><expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" | ||||||
|  |  | ||||||
| " Confirm Selection | " Confirm Selection | ||||||
| inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>" | inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>" | ||||||
|  |  | ||||||
|  | " LanguageClient Options  | ||||||
|  | nnoremap <F5> :call LanguageClient_contextMenu()<CR> | ||||||
|  |  | ||||||
| " Plugged Plugins | " Plugged Plugins | ||||||
| call plug#begin(stdpath('data') . '/plugged') | call plug#begin(stdpath('data') . '/plugged') | ||||||
|  |  | ||||||
|  | " Delimiter Autocompletion | ||||||
|  | Plug 'raimondi/delimitmate' | ||||||
|  |  | ||||||
| " One Dark Theme | " One Dark Theme | ||||||
| Plug 'joshdick/onedark.vim' | Plug 'joshdick/onedark.vim' | ||||||
|  |  | ||||||
|  | " Monokai Theme | ||||||
|  | Plug 'tomasr/molokai' | ||||||
|  |  | ||||||
| " Tender Theme | " Tender Theme | ||||||
| Plug 'jacoborus/tender.vim' | Plug 'jacoborus/tender.vim' | ||||||
|  |  | ||||||
|  | " Not too sure if this extension is necessary tbh | ||||||
| Plug 'sheerun/vim-polyglot' | Plug 'sheerun/vim-polyglot' | ||||||
|  |  | ||||||
| " Powerline Bar at bottom of screen | " Powerline Bar at bottom of screen | ||||||
| @@ -37,8 +50,14 @@ Plug 'vim-syntastic/syntastic' | |||||||
| " Rust Support | " Rust Support | ||||||
| Plug 'rust-lang/rust.vim' | Plug 'rust-lang/rust.vim' | ||||||
|  |  | ||||||
| " Languace Server Protocol Support | " Language Server Protocol Support | ||||||
| Plug 'neoclide/coc.nvim', {'branch': 'release'} | Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh', } | ||||||
|  |  | ||||||
|  | " Autocomplete | ||||||
|  | Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | ||||||
|  |  | ||||||
|  | " Fuzzy Search  | ||||||
|  | Plug 'junegunn/fzf' | ||||||
|  |  | ||||||
| " Multiple Cursors | " Multiple Cursors | ||||||
| Plug 'terryma/vim-multiple-cursors' | Plug 'terryma/vim-multiple-cursors' | ||||||
| @@ -48,17 +67,28 @@ Plug 'preservim/nerdtree' | |||||||
|  |  | ||||||
| " NerdTree Icons (Should be last according to docs) | " NerdTree Icons (Should be last according to docs) | ||||||
| Plug 'ryanoasis/vim-devicons' | Plug 'ryanoasis/vim-devicons' | ||||||
|  |  | ||||||
|  | " Better Rust Synatax Highlighting  | ||||||
|  | Plug 'arzg/vim-rust-syntax-ext' | ||||||
|  |  | ||||||
| call plug#end() | call plug#end() | ||||||
|  |  | ||||||
| " Autosave with rust-fmt (Rust Only) | " Autosave with rust-fmt (Rust Only) | ||||||
| let g:rustfmt_autosave = 1 | let g:rustfmt_autosave = 1 | ||||||
|  |  | ||||||
|  | " Enable Autocomplete | ||||||
|  | let g:deoplete#enable_at_startup = 1 | ||||||
|  |  | ||||||
| " Install Tender for Lightline | " Install Tender for Lightline | ||||||
| let g:lightline = { 'colorscheme': 'onedark' } | let g:lightline = { 'colorscheme': 'molokai' } | ||||||
|  |  | ||||||
|  | " Let The LSP Client know which Language servers to use | ||||||
|  | let g:LanguageClient_serverCommands = { | ||||||
|  | \ 'rust': ['rust-analyzer'] | ||||||
|  | \ } | ||||||
|  |  | ||||||
| " Configuration | " Configuration | ||||||
| set noshowmode " Not Needed because we have Lightline | set noshowmode " Not Needed because we have Lightline | ||||||
| colorscheme onedark | colorscheme molokai  | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user