aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-10-20 00:25:03 +0800
committerGuangxiong Lin <[email protected]>2023-10-20 00:25:03 +0800
commit80380aace77521bea4892028b419729b8fe9555c (patch)
treee803185d2ea71255e4fbb6b252b6f67dd78d5e84
parent2f9659a5b2d313c76ae9b36fa1c53e6585436edb (diff)
downloaddotfiles-80380aace77521bea4892028b419729b8fe9555c.tar.gz
dotfiles-80380aace77521bea4892028b419729b8fe9555c.tar.bz2
dotfiles-80380aace77521bea4892028b419729b8fe9555c.zip
Update vim config
-rw-r--r--.vim/after/ftplugin/ruby.vim5
-rw-r--r--.vim/after/plugin/gutentags.vim2
-rw-r--r--.vim/after/plugin/minpac.vim5
3 files changed, 9 insertions, 3 deletions
diff --git a/.vim/after/ftplugin/ruby.vim b/.vim/after/ftplugin/ruby.vim
index c9f7e91..e867f90 100644
--- a/.vim/after/ftplugin/ruby.vim
+++ b/.vim/after/ftplugin/ruby.vim
@@ -1,2 +1,3 @@
-set shiftwidth=2
-set softtabstop=2
+setlocal shiftwidth=2
+setlocal softtabstop=2
+setlocal foldmethod=indent
diff --git a/.vim/after/plugin/gutentags.vim b/.vim/after/plugin/gutentags.vim
index 8e38294..35cc401 100644
--- a/.vim/after/plugin/gutentags.vim
+++ b/.vim/after/plugin/gutentags.vim
@@ -7,7 +7,7 @@ let g:gutentags_ctags_extra_args += ['--c-kinds=+px']
let g:gutentags_ctags_extra_args += ['--output-format=e-ctags']
let g:gutentags_define_advanced_commands = 1
-let $GTAGSLABEL = 'native-pygments'
+let $GTAGSLABEL = 'pygments'
let g:gutentags_modules = []
if executable('ctags')
diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim
index 54593ad..b63bbfa 100644
--- a/.vim/after/plugin/minpac.vim
+++ b/.vim/after/plugin/minpac.vim
@@ -50,6 +50,11 @@ function! InitMinpac() abort
call minpac#add('https://github.com/junegunn/vim-easy-align')
call minpac#add('https://github.com/romainl/vim-qf.git')
call minpac#add('https://github.com/tpope/vim-scriptease.git')
+ call minpac#add('https://github.com/Konfekt/FastFold', {'type': 'start'})
+
+ " Add end after if, do, def in Ruby.
+ " Add endif, endfunction in Vimscript.
+ call minpac#add('https://github.com/tpope/vim-endwise', {'type': 'start'})
call minpac#add('https://github.com/tpope/vim-commentary')
call minpac#add('https://github.com/tpope/vim-eunuch.git')