From bfb6564c62ff2e85b8cab3daf20ddabc125f8fa0 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 17 Dec 2022 22:00:47 +0100 Subject: remove old git modules --- .vim/vimrc | 42 ++---------------------------------------- 1 file changed, 2 insertions(+), 40 deletions(-) (limited to '.vim/vimrc') diff --git a/.vim/vimrc b/.vim/vimrc index 4ff4a7a..f5cce4b 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -33,14 +33,11 @@ let g:airline#extensions#ale#enabled = 1 let g:airline_powerline_fonts = 1 let g:airline_highlighting_cache = 1 -" Completor config -let g:completor_clang_binary = '/usr/bin/clang' - " Enable colored brackets let g:rainbow_active = 1 " ALE config -set omnifunc=ale#completion#OmniFunc +"set omnifunc=ale#completion#OmniFunc let g:ale_completion_enabled = 1 let g:ale_completion_autoimport = 1 let g:ale_set_highlights = 1 "Highlights are annoying @@ -51,6 +48,7 @@ let g:ale_close_preview_on_insert = 1 let g:ale_floating_preview = 1 "let g:ale_hover_to_floating_preview = 1 let g:ale_floating_window_border = [] +let g:ale_linters = {'rust': ['rustc', 'analyzer']} "All things cursor set guicursor+=a:blinkon0 "disable blinking @@ -69,15 +67,6 @@ endif set listchars=tab:>\ ,trail:~,extends:>,precedes:< set list -" Use todo#Complete as the omni complete function for todo files -au filetype todo setlocal omnifunc=todo#Complete - -" Auto complete projects -au filetype todo imap + + - -" Auto complete contexts -au filetype todo imap @ @ - " leader let mapleader = "-" let leader = "-" @@ -138,12 +127,6 @@ tnoremap :VTermSwitch nnoremap :VTermSwitch "let g:vterminal_coverage = '0.33' -" completor -inoremap pumvisible() ? "\" : "\" -inoremap pumvisible() ? "\" : "\" -inoremap :ALEComplete -"inoremap Tab_Or_Complete() - " reload vimrc nmap :so $MYVIMRC @@ -190,24 +173,3 @@ function Run_in_terminal(prog) execute "terminal " . l:args . " " . a:prog startinsert endfunction - -" Use TAB to complete when typing words, else inserts TABs as usual. Uses -" dictionary, source files, and completor to find matching words to complete. - -" Note: usual completion is on but more trouble to press all the time. -" Never type the same word twice and maybe learn a new spellings! -" Use the Linux dictionary when spelling is in doubt. -function! Tab_Or_Complete() abort - " If completor is already open the `tab` cycles through suggested completions. - if pumvisible() - return "\" - " If completor is not open and we are in the middle of typing a word then - " `tab` opens completor menu. - elseif col('.')>1 && strpart( getline('.'), col('.')-2, 3 ) =~ '^[[:keyword:][:ident:]]' - return "\=completor#do('complete')\" - else - " If we aren't typing a word and we press `tab` simply do the normal `tab` - " action. - return "\" - endif -endfunction -- cgit v1.2.3