From c9727bf397a3941cdc98fc4e15f69dccbc29fc01 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Wed, 8 May 2019 18:29:08 +0300 Subject: [PATCH] Deoplete & Pug --- nvim/init.vim | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 50d309f..a62e869 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -16,7 +16,8 @@ Plug 'kien/tabman.vim' Plug 'chrisbra/colorizer' "Coding -Plug 'valloric/youcompleteme' +"Plug 'valloric/youcompleteme' +Plug 'shougo/deoplete.nvim' Plug 'tpope/vim-fugitive' Plug 'luochen1990/rainbow' Plug 'tpope/vim-surround' @@ -48,6 +49,8 @@ Plug 'elzr/vim-json' Plug 'tpope/vim-jdaddy' Plug 'tikhomirov/vim-glsl' Plug 'plasticboy/vim-markdown' +Plug 'digitaltoad/vim-jade' +Plug 'chrisbra/csv.vim' "General syntax check "Plug 'scrooloose/syntastic' @@ -77,6 +80,9 @@ let g:vimtex_quickfix_mode=0 set conceallevel=2 let g:tex_conceal='abdmgs' "let g:syntastic_tex_lacheck_quiet_messages = { 'regex': ['\Vpossible unwanted space at', '\VUse ` to begin'] } +call deoplete#custom#var('omni', 'input_patterns', { +\ 'tex': g:vimtex#re#deoplete +\}) "Python "let g:python_host_prog='/usr/bin/python' @@ -105,12 +111,6 @@ map :UndotreeToggle noremap :call comfortable_motion#flick(40) noremap :call comfortable_motion#flick(-40) -"Splits -nmap h -nmap j -nmap k -nmap l - "Other mappings nmap :Files :tnoremap @@ -133,10 +133,18 @@ set smartindent set autoindent set foldmethod=syntax -au Filetype python +set foldlevelstart=1 + +function SetPugOptions() + set foldmethod=indent + set foldlevel=20 +endfunction + +au Filetype pug call SetPugOptions() + +au Filetype python \ set foldmethod=indent -set foldlevelstart=1 let g:indent_guides_enable_on_vim_startup = 1 let g:indent_guides_exclude_filetypes = ['help', 'nerdtree'] @@ -159,7 +167,7 @@ let g:ale_open_list = 'on_save' let g:ale_list_window_size = 7 let g:ale_close_preview_on_insert = 1 let g:ale_lint_on_text_changed = 'never' -let g:ale_completion_enabled = 1 +let g:ale_completion_enabled = 0 let g:ale_linters = {'python': ['pyls']} let g:ale_fixers = { \ 'python': @@ -168,10 +176,8 @@ let g:ale_fixers = { autocmd QuitPre * if empty(&bt) | lclose | endif -let g:ycm_filetype_blacklist = { -\ 'python': 1 -\} - +let g:deoplete#enable_at_startup = 1 +call deoplete#custom#source('ale', 'rank', 999) "spell "set spell spelllang=en,ru