nvim-config

muh shitty neovim config
git clone git://git.thc420.xyz/nvim-config
Log | Files | Refs

init.vim (1016B)


      1 call plug#begin('~/.plugged')
      2 Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
      3 Plug 'autozimu/LanguageClient-neovim', {
      4     \ 'branch': 'next',
      5     \ 'do': 'bash install.sh',
      6     \ }
      7 Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
      8 call plug#end()
      9 
     10 let g:LanguageClient_serverCommands = {
     11     \ 'c' : ['clangd'],
     12     \ 'cpp': ['clangd'],
     13     \ 'rust': ['~/.cargo/bin/rustup', 'run', 'nightly', 'rls'],
     14     \ 'python': ['/usr/local/bin/pyls'],
     15     \ }
     16 
     17 set tabstop=4 softtabstop=4 expandtab shiftwidth=4 smarttab
     18 
     19 nnoremap <F5> :call LanguageClient_contextMenu()<CR>
     20 " Or map each action separately
     21 nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
     22 " nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
     23 " nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
     24 
     25 let g:deoplete#enable_at_startup = 1
     26 
     27 
     28 highlight VertSplit ctermfg=green
     29 highlight StatusLine ctermfg=green
     30 highlight Pmenu ctermfg=46 ctermbg=235
     31 
     32 set noshowmode
     33 set previewheight=5