nvim-config

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

commit 3e355e5e4c4c16d69cf414d52dd55e93ab440976
Author: blackbeard420 <blackbeard@blackbeard420.me>
Date:   Mon, 13 May 2019 20:39:07 -0400

initial commit

Diffstat:
Ainit.vim | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/init.vim b/init.vim @@ -0,0 +1,33 @@ +call plug#begin('~/.plugged') +Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } +Plug 'autozimu/LanguageClient-neovim', { + \ 'branch': 'next', + \ 'do': 'bash install.sh', + \ } +Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' } +call plug#end() + +let g:LanguageClient_serverCommands = { + \ 'c' : ['clangd'], + \ 'cpp': ['clangd'], + \ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'], + \ 'python': ['/usr/local/bin/pyls'], + \ } + +set tabstop=4 softtabstop=4 expandtab shiftwidth=4 smarttab + +nnoremap <F5> :call LanguageClient_contextMenu()<CR> +" Or map each action separately +nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR> +" nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR> +" nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR> + +let g:deoplete#enable_at_startup = 1 + + +highlight VertSplit ctermfg=green +highlight StatusLine ctermfg=green +highlight Pmenu ctermfg=46 ctermbg=235 + +set noshowmode +set previewheight=5