From 182406beb78a576e7b4ae0183e6c9cff76f5179a Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Wed, 1 Jan 2020 00:05:41 -0500 Subject: [PATCH] Update init.vim removed cruft and added statusline coc support --- .config/nvim/init.vim | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index ad9ae4bd..890ca9cb 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -14,7 +14,6 @@ Plug 'scrooloose/nerdtree' Plug 'junegunn/goyo.vim' Plug 'PotatoesMaster/i3-vim-syntax' Plug 'jreybert/vimagit' -Plug 'lukesmithxyz/vimling' Plug 'vimwiki/vimwiki' Plug 'bling/vim-airline' Plug 'tpope/vim-commentary' @@ -52,13 +51,6 @@ set clipboard+=unnamedplus map n :NERDTreeToggle autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif -" vimling: - nm d :call ToggleDeadKeys() - imap d :call ToggleDeadKeys()a - nm i :call ToggleIPA() - imap i :call ToggleIPA()a - nm q :call ToggleProse() - " Shortcutting split navigation, saving a keypress: map h map j @@ -68,10 +60,6 @@ set clipboard+=unnamedplus " Check file in shellcheck: map s :!clear && shellcheck % -" Open my bibliography file in split - map b :vsp$BIB - map r :vsp$REFER - " Replace all is aliased to S. nnoremap S :%s//g @@ -110,7 +98,9 @@ set clipboard+=unnamedplus autocmd BufWritePost *Xresources,*Xdefaults !xrdb % " Update binds when sxhkdrc is updated. autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd -" coc stuff + +" Code completion stuff +" ######################## set nobackup set nowritebackup @@ -127,7 +117,8 @@ function! s:check_back_space() abort return !col || getline('.')[col - 1] =~# '\s' endfunction - +" Add status line support, for integration with other plugin, checkout `:h coc-status` +set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} " You will have bad experience for diagnostic messages when it's default 4000. set updatetime=300