Large cleanup and switch to NVIM LSP

This commit is contained in:
Alexander Gehrke 2021-08-11 12:25:50 +02:00
parent 37fb739795
commit 2eed622601
14 changed files with 221 additions and 83 deletions

12
after/plugin/c.vim Normal file
View file

@ -0,0 +1,12 @@
"{{{ c header gates
function! s:insert_gates()
let gatename = substitute(toupper(expand("%:t")), "\\.", "_", "g")
execute "normal! i#ifndef " . gatename
execute "normal! o#define " . gatename
execute "normal! Go#endif /* " . gatename . " */"
normal! kk
endfunction
autocmd BufNewFile *.{h,hpp} call <SID>insert_gates()
"}}}

7
after/plugin/compe.vim Normal file
View file

@ -0,0 +1,7 @@
if exists('g:loaded_compe')
inoremap <silent><expr> <C-Space> compe#complete()
inoremap <silent><expr> <CR> compe#confirm('<CR>')
inoremap <silent><expr> <C-e> compe#close('<C-e>')
inoremap <silent><expr> <C-f> compe#scroll({ 'delta': +4 })
inoremap <silent><expr> <C-d> compe#scroll({ 'delta': -4 })
endif

View file

@ -1,9 +0,0 @@
nmap <silent> <Leader>of :FSHere<cr>
nmap <silent> <Leader>ol :FSRight<cr>
nmap <silent> <Leader>oL :FSSplitRight<cr>
nmap <silent> <Leader>oh :FSLeft<cr>
nmap <silent> <Leader>oH :FSSplitLeft<cr>
nmap <silent> <Leader>ok :FSAbove<cr>
nmap <silent> <Leader>oK :FSSplitAbove<cr>
nmap <silent> <Leader>oj :FSBelow<cr>
nmap <silent> <Leader>oJ :FSSplitBelow<cr>

2
after/plugin/gina.vim Normal file
View file

@ -0,0 +1,2 @@
map <C-g>s <cmd>Gina status<cr>
map <C-g>a <cmd>Gina add --patch<cr>