From 1444411f02652d5421d46b38399ccbff09b831fd Mon Sep 17 00:00:00 2001 From: neodarz Date: Sun, 5 Aug 2018 11:13:25 +0200 Subject: Update nvim plugin conf --- nvim/.config/nvim/init.vim | 102 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 96 insertions(+), 6 deletions(-) (limited to 'nvim/.config') diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index e82f120..8cc39ed 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -1,3 +1,6 @@ +let g:python_host_prog='/usr/bin/python' + + """"""" Plugin management stuff """"""" set nocompatible filetype off @@ -48,7 +51,7 @@ Plugin 'Xuyuanp/nerdtree-git-plugin' Plugin 'ajh17/VimCompletesMe' " PHP Auto Completion -Plugin 'shawncplus/phpcomplete.vim' +"Plugin 'shawncplus/phpcomplete.vim' " Better syntax and highlighting Plugin 'pangloss/vim-javascript' @@ -109,7 +112,7 @@ Plugin 'palantir/tslint' "Plugin 'FredKSchott/CoVim' " Collaborative vim tool -Plugin 'makerforceio/CoVim' +"Plugin 'makerforceio/CoVim' " Twig syntax for vim Plugin 'lumiliet/vim-twig' @@ -124,7 +127,7 @@ Plugin 'cakebaker/scss-syntax.vim' Plugin 'gabesoft/vim-ags' " Tool for fix PHP coding standards issues -Plugin 'stephpy/vim-php-cs-fixer' +"Plugin 'stephpy/vim-php-cs-fixer' " French Correction tool Plugin 'dpelle/vim-Grammalecte' @@ -136,7 +139,7 @@ Plugin 'https://github.com/ctrlpvim/ctrlp.vim.git' Plugin 'majutsushi/tagbar' " CakePHP vim support -Plugin 'ndreynolds/vim-cakephp' +"Plugin 'ndreynolds/vim-cakephp' " Auto convert rtf, rtfd, doc or wordml to plain text Plugin 'vim-scripts/textutil.vim' @@ -155,7 +158,42 @@ Plugin 'Kuniwak/vint' " Plugin Asynchronous Lint Engine (linter) " Check https://github.com/w0rp/ale#supported-languages for more info -Plugin 'w0rp/ale' +"Plugin 'w0rp/ale' + +" Latex plugin for writting documents +"Plugin 'lervag/vimtex' + +" Start plugin +"Plugin 'mhinz/vim-startify' + + +" Dependance for other plugins +"Plugin 'Shougo/deoplete.nvim' + +" Use snippet +"Plugin 'Shougo/neosnippet.vim' + +" snippets +"Plugin 'Shougo/neosnippet-snippets' + +" Depedence for other plugin +"Plugin 'Shougo/unite.vim' + +" File explorer +"Plugin 'Shougo/vimfiler' + +" Open terminal +"Plugin 'Shougo/deol.nvim' + +" Use sudo in vim +"Plugin 'lambdalisue/suda.vim' + +"Plugin 'junegunn/fzf.vim' + +"Plugin 'Glench/Vim-Jinja2-Syntax' + +" auto detect indentation style +Plugin 'tpope/vim-sleuth' " After all plugins... call vundle#end() @@ -248,7 +286,7 @@ autocmd BufNewFile,BufRead *.tex,*.bib imap " NERDTree keybinding map :NERDTreeToggle autocmd StdinReadPre * let s:std_in=1 -autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif +"autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif " NERDTress File highlighting function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg) @@ -341,3 +379,55 @@ set encoding=UTF-8 nnoremap :UndotreeToggle :let g:colorizer_auto_filetype='css,html' + +"let g:deoplete#enable_at_startup = 1 + +" Plugin key-mappings. +" Note: It must be "imap" and "smap". It uses mappings. +imap (neosnippet_expand_or_jump) +smap (neosnippet_expand_or_jump) +xmap (neosnippet_expand_target) + +" SuperTab like snippets behavior. +" Note: It must be "imap" and "smap". It uses mappings. +"imap +" \ pumvisible() ? "\" : +" \ neosnippet#expandable_or_jumpable() ? +" \ "\(neosnippet_expand_or_jump)" : "\" +smap neosnippet#expandable_or_jumpable() ? +\ "\(neosnippet_expand_or_jump)" : "\" + + +" This do bullshit with '"' char +" For conceal markers. +"if has('conceal') +" set conceallevel=2 concealcursor=niv +"endif + +"use for completion +function! TabWrap() + if pumvisible() + return "\" + elseif strpart( getline('.'), 0, col('.') - 1 ) =~ '^\s*$' + return "\" + elseif &omnifunc !~ '' + return "\\" + else + return "\" + endif +endfunction + +" power tab +imap TabWrap() + +" Enter: complete&close popup if visible (so next Enter works); else: break undo +inoremap pumvisible() ? + \ deoplete#mappings#close_popup() : "u" + +" Ctrl-Space: summon FULL (synced) autocompletion +inoremap deoplete#mappings#manual_complete() + +" Escape: exit autocompletion, go to Normal mode +inoremap pumvisible() ? "" : "" + +set enc=utf-8 -- cgit v1.2.1