aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-05 11:13:25 +0200
committerneodarz <neodarz@neodarz.net>2018-08-05 11:13:25 +0200
commit1444411f02652d5421d46b38399ccbff09b831fd (patch)
treec4ccf1bcd4f5d9a7d1c44ebcb9c550667cbf025b
parent6364fd9e954b5871d5228eff5ea29f05911a76dd (diff)
downloaddotfiles_ascii-1444411f02652d5421d46b38399ccbff09b831fd.tar.xz
dotfiles_ascii-1444411f02652d5421d46b38399ccbff09b831fd.zip
Update nvim plugin conf
Diffstat (limited to '')
-rw-r--r--nvim/.config/nvim/init.vim102
1 files changed, 96 insertions, 6 deletions
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 <buffer> <C-b> <Esc><C-b>
" NERDTree keybinding
map <C-b> :NERDTreeToggle<CR>
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 <C-c> :UndotreeToggle<cr>
: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 <Plug> mappings.
+imap <C-k> <Plug>(neosnippet_expand_or_jump)
+smap <C-k> <Plug>(neosnippet_expand_or_jump)
+xmap <C-k> <Plug>(neosnippet_expand_target)
+
+" SuperTab like snippets behavior.
+" Note: It must be "imap" and "smap". It uses <Plug> mappings.
+"imap <expr><TAB>
+" \ pumvisible() ? "\<C-n>" :
+" \ neosnippet#expandable_or_jumpable() ?
+" \ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
+smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
+\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
+
+
+" This do bullshit with '"' char
+" For conceal markers.
+"if has('conceal')
+" set conceallevel=2 concealcursor=niv
+"endif
+
+"use <tab> for completion
+function! TabWrap()
+ if pumvisible()
+ return "\<C-N>"
+ elseif strpart( getline('.'), 0, col('.') - 1 ) =~ '^\s*$'
+ return "\<tab>"
+ elseif &omnifunc !~ ''
+ return "\<C-X>\<C-O>"
+ else
+ return "\<C-N>"
+ endif
+endfunction
+
+" power tab
+imap <silent><expr><tab> TabWrap()
+
+" Enter: complete&close popup if visible (so next Enter works); else: break undo
+inoremap <silent><expr> <Cr> pumvisible() ?
+ \ deoplete#mappings#close_popup() : "<C-g>u<Cr>"
+
+" Ctrl-Space: summon FULL (synced) autocompletion
+inoremap <silent><expr> <C-Space> deoplete#mappings#manual_complete()
+
+" Escape: exit autocompletion, go to Normal mode
+inoremap <silent><expr> <Esc> pumvisible() ? "<C-e><Esc>" : "<Esc>"
+
+set enc=utf-8