+ Testing out a few things
This commit is contained in:
parent
49cc621f90
commit
80952c2fad
2 changed files with 28 additions and 10 deletions
|
@ -48,12 +48,18 @@ else
|
||||||
Plug 'roxma/vim-hug-neovim-rpc'
|
Plug 'roxma/vim-hug-neovim-rpc'
|
||||||
endif
|
endif
|
||||||
" deoplete source
|
" deoplete source
|
||||||
if has('win32') || has('win64')
|
" if has('win32') || has('win64')
|
||||||
Plug 'tbodt/deoplete-tabnine', { 'do': 'powershell.exe .\install.ps1' }
|
" Plug 'tbodt/deoplete-tabnine', { 'do': 'powershell.exe .\install.ps1' }
|
||||||
else
|
" else
|
||||||
Plug 'tbodt/deoplete-tabnine', { 'do': './install.sh' }
|
" Plug 'tbodt/deoplete-tabnine', { 'do': './install.sh' }
|
||||||
endif
|
" 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'
|
Plug 'Yggdroot/indentLine'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
@ -62,6 +68,18 @@ call plug#end()
|
||||||
" - deoplete
|
" - deoplete
|
||||||
let g:deoplete#enable_at_startup = 1
|
let g:deoplete#enable_at_startup = 1
|
||||||
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
||||||
|
call deoplete#custom#option('ignore_sources', {'_': ['around', 'buffer']})
|
||||||
|
" imap <tab> <Plug>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
|
" - NERDTree
|
||||||
let NERDTreeShowHidden=1
|
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#')})
|
call timer_start(0, {-> nerdtree_winnr && setwinvar(nerdtree_winnr, '&stl', '%#Normal#')})
|
||||||
endfu
|
endfu
|
||||||
|
|
||||||
" Supertab
|
|
||||||
let g:SuperTabDefaultCompletionType = "<c-n>"
|
|
||||||
|
|
||||||
" Custom comments
|
" Custom comments
|
||||||
autocmd FileType xdefaults setlocal commentstring=!\ %s
|
autocmd FileType xdefaults setlocal commentstring=!\ %s
|
||||||
|
|
||||||
|
" Indent visualization
|
||||||
let g:indentLine_setColors = 0
|
let g:indentLine_setColors = 0
|
||||||
|
let g:indentLine_leadingSpaceEnabled = 1
|
||||||
|
let g:indentLine_leadingSpaceChar = '·'
|
||||||
hi Conceal ctermfg=0 ctermbg=NONE
|
hi Conceal ctermfg=0 ctermbg=NONE
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
" ----- Vim Initial Config
|
" ----- Vim Initial Config
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set hls
|
set hls
|
||||||
set number
|
set number relativenumber
|
||||||
set ignorecase
|
set ignorecase
|
||||||
set smartcase
|
set smartcase
|
||||||
set mouse=a
|
set mouse=a
|
||||||
|
@ -22,7 +22,7 @@ syntax on
|
||||||
filetype indent plugin on
|
filetype indent plugin on
|
||||||
map <C-n> :NERDTreeToggle<CR>
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
let mapleader=" "
|
let mapleader=" "
|
||||||
|
|
||||||
" ----- Mapping
|
" ----- Mapping
|
||||||
" Norm but in shortcut
|
" Norm but in shortcut
|
||||||
vnoremap . :normal .<CR>
|
vnoremap . :normal .<CR>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue