From 80952c2fad035ae57d7fd8fa07ed946b4e4bb737 Mon Sep 17 00:00:00 2001 From: ziro Date: Mon, 9 Nov 2020 08:32:48 +0700 Subject: [PATCH] + Testing out a few things --- .config/vim/vim_plug | 34 ++++++++++++++++++++++++++-------- .config/vim/vim_uni | 4 ++-- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/.config/vim/vim_plug b/.config/vim/vim_plug index 31423f9..435e1db 100644 --- a/.config/vim/vim_plug +++ b/.config/vim/vim_plug @@ -48,12 +48,18 @@ else Plug 'roxma/vim-hug-neovim-rpc' endif " deoplete source -if has('win32') || has('win64') - Plug 'tbodt/deoplete-tabnine', { 'do': 'powershell.exe .\install.ps1' } -else - Plug 'tbodt/deoplete-tabnine', { 'do': './install.sh' } -endif +" if has('win32') || has('win64') +" Plug 'tbodt/deoplete-tabnine', { 'do': 'powershell.exe .\install.ps1' } +" else +" Plug 'tbodt/deoplete-tabnine', { 'do': './install.sh' } +" endif +" Plug 'MarcWeber/vim-addon-mw-utils' +" Plug 'tomtom/tlib_vim' +" Plug 'garbas/vim-snipmate' +" Plug 'honza/vim-snippets' +Plug 'deoplete-plugins/deoplete-jedi' +" Indent visualization Plug 'Yggdroot/indentLine' call plug#end() @@ -62,6 +68,18 @@ call plug#end() " - deoplete let g:deoplete#enable_at_startup = 1 inoremap pumvisible() ? "\" : "\" +call deoplete#custom#option('ignore_sources', {'_': ['around', 'buffer']}) +" imap snipMateNextOrTrigger + +" omnifuncs +augroup omnifuncs + autocmd! + autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS + autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags + autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS + autocmd FileType python setlocal omnifunc=pythoncomplete#Complete + autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags +augroup end " - NERDTree let NERDTreeShowHidden=1 @@ -122,11 +140,11 @@ fu s:disable_lightline_on_nerdtree() abort call timer_start(0, {-> nerdtree_winnr && setwinvar(nerdtree_winnr, '&stl', '%#Normal#')}) endfu -" Supertab -let g:SuperTabDefaultCompletionType = "" - " Custom comments autocmd FileType xdefaults setlocal commentstring=!\ %s +" Indent visualization let g:indentLine_setColors = 0 +let g:indentLine_leadingSpaceEnabled = 1 +let g:indentLine_leadingSpaceChar = 'ยท' hi Conceal ctermfg=0 ctermbg=NONE diff --git a/.config/vim/vim_uni b/.config/vim/vim_uni index 46a4d32..ae55171 100644 --- a/.config/vim/vim_uni +++ b/.config/vim/vim_uni @@ -6,7 +6,7 @@ " ----- Vim Initial Config set encoding=utf-8 set hls -set number +set number relativenumber set ignorecase set smartcase set mouse=a @@ -22,7 +22,7 @@ syntax on filetype indent plugin on map :NERDTreeToggle let mapleader=" " - + " ----- Mapping " Norm but in shortcut vnoremap . :normal .