From 76db67cdd3fc0e5796958e53e8f9895e98f1424a Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Wed, 6 Mar 2019 07:18:24 +0100 Subject: [PATCH] neovim: autocompletion * NEW Tries to implement autocompletion. * BETTER Adds some rules in the gitignore. * Reverts to light colors. * Commits the spell changes. Signed-off-by: iGor milhit --- .gitignore | 1 + init.vim | 23 +++++++++++++++++++++-- spell/fr.utf-8.add | 6 ++++++ spell/fr.utf-8.add.spl | Bin 302 -> 402 bytes 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 28b4e6c..36b4321 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # `vim-plug` plugins plugged/* +autoload # netrw .netrwhist diff --git a/init.vim b/init.vim index 21f673b..2058ef0 100644 --- a/init.vim +++ b/init.vim @@ -1,6 +1,6 @@ " Syntax coloration and color theme syntax enable -set background=dark +set background=light colorscheme solarized " Filetype detection @@ -52,6 +52,10 @@ au FileType markdown set colorcolumn& " Consider `.jsonld` as JSON autocmd BufNewFile,BufRead *.jsonld setfiletype json +" tabstop to 2 for JSON +au FileType json set tabstop=2 +au FileType json set softtabstop=2 +au FileType json set shiftwidth=2 " fold " Type de fold si c'est du JSON @@ -90,7 +94,13 @@ let g:airline_powerline_fonts = 1 " netrw, instead of NERDTree let g:netrw_liststyle = 3 let g:netrw_banner = 0 -let g:netrw_browse_split = 3 +let g:netrw_browse_split = 4 +let g:netrw_altv = 1 +let g:netrw_winsize = 20 +" augroup ProjectDrawer +" autocmd! +" autocmd VimEnter * :Vexplore +" augroup END " vim-json, don't conceal let g:vim_json_syntax_conceal = 0 @@ -101,6 +111,9 @@ let g:ctrlp_working_path_mode = 'ra' " enable caching let g:ctrlp_use_caching = 1 let g:ctrlp_clear_cache_on_exit = 0 +" enable autocomplete +autocmd BufEnter * call ncm2#enable_for_buffer() +set completeopt=noinsert,menuone,noselect " plugins (vim-plug) call plug#begin('~/.config/nvim/plugged') @@ -129,4 +142,10 @@ Plug 'nvie/vim-flake8' Plug 'kien/ctrlp.vim' Plug 'scrooloose/nerdtree' Plug 'Floobits/floobits-neovim' +Plug 'https://github.com/editorconfig/editorconfig-vim' +Plug 'ncm2/ncm2' +Plug 'roxma/nvim-yarp' +Plug 'ncm2/ncm2-bufword' +Plug 'Shougo/neco-syntax' +Plug 'ncm2/ncm2-syntax' call plug#end() diff --git a/spell/fr.utf-8.add b/spell/fr.utf-8.add index bd74a4a..9461089 100644 --- a/spell/fr.utf-8.add +++ b/spell/fr.utf-8.add @@ -11,3 +11,9 @@ l'écrivain autophage réenchantent préindustrielle +barcode +consortiale +multilingue +Martigny +Milhit +brisolée diff --git a/spell/fr.utf-8.add.spl b/spell/fr.utf-8.add.spl index 8c5d8b87a520980c6417af3de59511ecc31ad68e..0d9739a43bdb2d5026f87103576ec1fe7a52ed42 100644 GIT binary patch literal 402 zcmXv~y-ve05cX$@iJbvuXJ_a;AjHbj$s}%K;nd{i=MDjtb;PRu#kx#|<3I^d zy&V%qvSx~@Xo~U+`#_p_M7$6?DWf2%I0*7yS-1G+cjf|W*d(%7TsSXu_}M)E!h`c+ zSveEmo-Sut%f_KoxkSrW17X(xGi#wnzKH@^WTEY*$ebmO*_N&}mQdk#yh$Zb;uYOT n>m^wtGD)7KRu7g)lTHvhW8uFX?x$&vie(yR{*x?K&HcFnv!zeU literal 302 zcmXv~OAdlC5ba~>-i6@+?74*tw=Uc@P=Q!l(xMn|=AWUqJ=PxN@ON9JWH+^Qk1lEv1NB(W`pfk#AJV5U^6foRKlGkId>I3kq? nFJ?(+iz*6ClXU`#jG%X7Ln(g}m7Wq6G