tidied up

This commit is contained in:
ManjaroOne666 2018-05-06 22:23:17 +01:00
commit f9fbefd344
6 changed files with 438 additions and 808 deletions

View file

@ -130,6 +130,10 @@ Plugin 'prabirshrestha/asyncomplete-necovim.vim'
Plugin 'prabirshrestha/async.vim'
Plugin 'prabirshrestha/vim-lsp'
" typewriter
" https://github.com/logico-dev/typewriter/blob/master/README.md
Plugin 'logico-dev/typewriter'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
@ -157,21 +161,21 @@ augroup END
call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({
\ 'name': 'file',
\ 'whitelist': ['*'],
\ 'priority': 99,
\ 'priority': -20,
\ 'completor': function('asyncomplete#sources#file#completor')
\ }))
call asyncomplete#register_source(asyncomplete#sources#ultisnips#get_source_options({
\ 'name': 'ultisnips',
\ 'whitelist': ['*'],
\ 'priority': 95,
\ 'priority': -30,
\ 'completor': function('asyncomplete#sources#ultisnips#completor'),
\ }))
call asyncomplete#register_source(asyncomplete#sources#necovim#get_source_options({
\ 'name': 'necovim',
\ 'whitelist': ['vim'],
\ 'priority': 90,
\ 'priority': -40,
\ 'completor': function('asyncomplete#sources#necovim#completor'),
\ }))
@ -179,23 +183,23 @@ call asyncomplete#register_source(asyncomplete#sources#buffer#get_source_options
\ 'name': 'buffer',
\ 'whitelist': ['*'],
\ 'blacklist': ['go'],
\ 'priority': 80,
\ 'priority': -50,
\ 'completor': function('asyncomplete#sources#buffer#completor'),
\ }))
call asyncomplete#register_source(asyncomplete#sources#omni#get_source_options({
\ 'name': 'omni',
\ 'whitelist': ['*'],
\ 'blacklist': ['c', 'cpp', 'html'],
\ 'priority': 70,
\ 'blacklist': ['c', 'cpp', 'html', 'python'],
\ 'priority': -60,
\ 'completor': function('asyncomplete#sources#omni#completor')
\ }))
call asyncomplete#register_source(asyncomplete#sources#tags#get_source_options({
\ 'name': 'tags',
\ 'whitelist': ['*'],
\ 'blacklist': ['vim'],
\ 'priority': 60,
\ 'blacklist': ['vim', 'python'],
\ 'priority': -70,
\ 'completor': function('asyncomplete#sources#tags#completor'),
\ 'config': {
\ 'max_file_size': 50000000,
@ -209,14 +213,22 @@ call asyncomplete#register_source(asyncomplete#sources#tags#get_source_options({
augroup User lsp_setup
autocmd!
if executable('vls')
autocmd User lsp_setup call lsp#register_server({
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'vue',
\ 'cmd': {server_info->['vls']},
\ 'whitelist': ['vue'],
\ })
endif
if executable('pyls')
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'pyls',
\ 'cmd': {server_info->['pyls']},
\ 'whitelist': ['python'],
\ })
endif
augroup END
"}}}
" switch.vim