From a2ebb787a0e70dc7898a742347e50f9d3e4cecfe Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 8 Jun 2021 10:34:52 +0200 Subject: fix nvim terminal --- .vim/vimrc | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to '.vim') diff --git a/.vim/vimrc b/.vim/vimrc index a3b59f8..787aff6 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -27,10 +27,13 @@ set ttimeoutlen=10 " Flashy statusline let g:airline#extensions#tabline#enabled = 1 -let g:airline#extensions#branch#enabled = 1 -let g:airline#extensions#whitespace#enabled = 1 +"let g:airline#extensions#branch#enabled = 1 +"let g:airline#extensions#whitespace#enabled = 1 let g:airline#extensions#ale#enabled = 1 let g:airline_powerline_fonts = 1 +let g:airline_highlighting_cache = 1 + +set omnifunc=ale#completion#OmniFunc " Completor config let g:completor_clang_binary = '/usr/bin/clang' @@ -133,7 +136,7 @@ inoremap {; {};O " completor inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" -inoremap :ALEComplete +"inoremap :ALEComplete "inoremap Tab_Or_Complete() " =========== @@ -168,12 +171,18 @@ function Insert_Header(name) endfunction function Run_in_terminal(prog) - if !has('terminal') - return + let l:args = " " + + if !has('nvim') + if !has('terminal') + return + endif + + let l:args='++curwin' endif tabnew - execute "terminal ++curwin " . a:prog + execute "terminal " . l:args . " " . a:prog startinsert endfunction -- cgit v1.2.3