From 42bc7d0ac4692bb7c93c955478acb8802c5bfb49 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Fri, 3 Sep 2021 21:49:27 +1000 Subject: [PATCH] neovim: added tab definitions --- profiles/neovim.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/profiles/neovim.nix b/profiles/neovim.nix index 2b8e72e..6fb9116 100644 --- a/profiles/neovim.nix +++ b/profiles/neovim.nix @@ -73,6 +73,14 @@ " Trigger for numbertoggle to switch modes nnoremap :set relativenumber! + " Tab settings + let g:SuperTabDefaultCompletionType = 'context' + let g:SuperTabContextTextOmniPrecedence = ['&omnifunc','&completefunc'] + let g:SuperTabRetainCompletionType=2 + + inoremap pumvisible() ? "\" : "\" + inoremap pumvisible() ? "\" : "\" + nnoremap RemoveTrailingWhiteSpace :call TrimWhiteSpace() autocmd FileWritePre * :call TrimWhiteSpace() autocmd FileAppendPre * :call TrimWhiteSpace()