-
Notifications
You must be signed in to change notification settings - Fork 0
/
mini.vim
53 lines (46 loc) · 1.46 KB
/
mini.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
if &compatible
set nocompatible " Be iMproved
endif
" Disable Vim's native pack feature
set packpath=
" set runtimepath+=~/.cache_test/nvim/dein/repos/github.com/Shougo/dein.vim
let $VIM_PATH = fnamemodify(resolve(expand('<sfile>:p')), ':h:h')
let $CACHE = expand('~/.cache/nvim')
if !isdirectory(expand($CACHE))
call mkdir(expand($CACHE), 'p')
endif
let g:dein#auto_recache = 1
let s:dein_dir = expand('$CACHE/dein')
let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim'
if &runtimepath !~# '/dein.vim'
if !isdirectory(s:dein_repo_dir)
execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_dir
endif
execute 'set runtimepath+='.substitute(
\ fnamemodify(s:dein_repo_dir, ':p') , '/$', '', '')
endif
if dein#min#load_state(s:dein_dir)
call dein#begin(s:dein_dir, [expand('<sfile>')])
" Required:
" call dein#add('neovim/nvim-lspconfig')
call dein#add('neoclide/coc.nvim', { 'merged': 0, 'rev': 'release' })
call dein#add('honza/vim-snippets')
" if has('nvim')
" call dein#add('nvim-treesitter/nvim-treesitter')
" endif
" Required:
call dein#end()
call dein#save_state()
endif
" Update or install plugins if a change detected
if dein#check_install()
if ! has('nvim')
set nomore
endif
call dein#install()
endif
call dein#call_hook('source')
call dein#call_hook('post_source')
filetype plugin indent on
syntax enable
set termguicolors