neovim: added tab definitions

This commit is contained in:
Serĉanto de Scio 2021-09-03 21:49:27 +10:00
parent d9a39170e7
commit 42bc7d0ac4
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -73,6 +73,14 @@
" Trigger for numbertoggle to switch modes " Trigger for numbertoggle to switch modes
nnoremap <silent> <C-n> :set relativenumber!<CR> nnoremap <silent> <C-n> :set relativenumber!<CR>
" Tab settings
let g:SuperTabDefaultCompletionType = 'context'
let g:SuperTabContextTextOmniPrecedence = ['&omnifunc','&completefunc']
let g:SuperTabRetainCompletionType=2
inoremap <expr><Enter> pumvisible() ? "\<C-Y>" : "\<Enter>"
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
nnoremap <silent> <Leader>RemoveTrailingWhiteSpace :call TrimWhiteSpace()<CR> nnoremap <silent> <Leader>RemoveTrailingWhiteSpace :call TrimWhiteSpace()<CR>
autocmd FileWritePre * :call TrimWhiteSpace() autocmd FileWritePre * :call TrimWhiteSpace()
autocmd FileAppendPre * :call TrimWhiteSpace() autocmd FileAppendPre * :call TrimWhiteSpace()