aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-04 21:07:00 +0800
committerGuangxiong Lin <[email protected]>2022-04-04 21:07:00 +0800
commit2a32c8ba76d8d7e1f6e617849153113dd447fdf3 (patch)
tree7c60cfd4a34554bc52ff3d9930b67bc5dc463ab9
parentda158ff2c2554580918daf250a88e5d18598d6bb (diff)
downloaddotfiles-2a32c8ba76d8d7e1f6e617849153113dd447fdf3.tar.gz
dotfiles-2a32c8ba76d8d7e1f6e617849153113dd447fdf3.tar.bz2
dotfiles-2a32c8ba76d8d7e1f6e617849153113dd447fdf3.zip
Load ale after config is loaded (vim)
Some config should be set before ale is loaded.
-rw-r--r--.vim/after/plugin/ale.vim2
-rw-r--r--.vim/after/plugin/minpac.vim2
2 files changed, 3 insertions, 1 deletions
diff --git a/.vim/after/plugin/ale.vim b/.vim/after/plugin/ale.vim
index 9a61ab0..87d0c96 100644
--- a/.vim/after/plugin/ale.vim
+++ b/.vim/after/plugin/ale.vim
@@ -25,3 +25,5 @@ let g:airline#extensions#ale#enabled = 1
nmap <silent> [g <Plug>(ale_previous_wrap)
nmap <silent> ]g <Plug>(ale_next_wrap)
+
+packadd ale
diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim
index b07374a..50d839c 100644
--- a/.vim/after/plugin/minpac.vim
+++ b/.vim/after/plugin/minpac.vim
@@ -17,7 +17,7 @@ function! InitMinpac() abort
call minpac#add('https://github.com/ycm-core/YouCompleteMe',
\ {'do': function('s:build_ycm')})
- call minpac#add('https://github.com/dense-analysis/ale.git')
+ call minpac#add('https://github.com/dense-analysis/ale.git', {'type': 'opt'})
call minpac#add('https://github.com/SirVer/ultisnips.git', {'type': 'opt'})
call minpac#add('https://github.com/honza/vim-snippets')