aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-11-22 22:42:05 +0800
committerGuangxiong Lin <[email protected]>2023-11-22 22:42:05 +0800
commit5b19f525ad154c81de56d406dff6dfba6f5a8a66 (patch)
tree9ee400e4f8b286779034c26332f7c1a56daff961
parent964fa8d921259385c471870bd5344974e79294b6 (diff)
downloaddotfiles-5b19f525ad154c81de56d406dff6dfba6f5a8a66.tar.gz
dotfiles-5b19f525ad154c81de56d406dff6dfba6f5a8a66.tar.bz2
dotfiles-5b19f525ad154c81de56d406dff6dfba6f5a8a66.zip
Update vim config
-rw-r--r--.gitmodules3
-rw-r--r--.vim/after/plugin/fzf.vim1
-rw-r--r--.vim/after/plugin/lsp.vim9
-rw-r--r--.vim/after/plugin/minpac.vim1
-rw-r--r--.vim/after/plugin/noteutil.vim2
m---------.vim/pack/submodule/start/vim-javascript0
-rw-r--r--.vimrc5
7 files changed, 10 insertions, 11 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..a3eb48a
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule ".vim/pack/submodule/start/vim-javascript"]
+ path = .vim/pack/submodule/start/vim-javascript
+ url = https://github.com/pangloss/vim-javascript
diff --git a/.vim/after/plugin/fzf.vim b/.vim/after/plugin/fzf.vim
index 648cb54..4812000 100644
--- a/.vim/after/plugin/fzf.vim
+++ b/.vim/after/plugin/fzf.vim
@@ -61,6 +61,7 @@ noremap <leader>fm :FzfHistory<CR>
noremap <leader>ft :FzfBTags<CR>
noremap <leader>fT :FzfTags<CR>
noremap <leader>fr :FzfRg<space>
+noremap <leader>rg :FzfRg<space>
noremap <leader>fc :FzfCommands<CR>
noremap <leader>fgc :FzfBCommits<CR>
noremap <leader>fgC :FzfCommits<CR>
diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim
index 6641005..be41ceb 100644
--- a/.vim/after/plugin/lsp.vim
+++ b/.vim/after/plugin/lsp.vim
@@ -57,15 +57,6 @@ if executable('godot')
\ })
endif
-if executable('noteutil')
- au User lsp_setup
- \ call lsp#register_server({
- \ 'name': 'noteutil',
- \ 'cmd': {server_info->['noteutil', 'server', '--lsp']},
- \ 'allowlist': ['markdown']
- \ })
-endif
-
" https://github.com/mickael-menu/zk
" if executable('zk')
" au User lsp_setup call lsp#register_server({
diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim
index ff31f80..f895def 100644
--- a/.vim/after/plugin/minpac.vim
+++ b/.vim/after/plugin/minpac.vim
@@ -42,7 +42,6 @@ function! InitMinpac() abort
call minpac#add('https://github.com/airblade/vim-rooter.git')
call minpac#add('https://github.com/mbbill/undotree.git')
call minpac#add('https://github.com/godlygeek/tabular.git')
- call minpac#add('https://github.com/editorconfig/editorconfig-vim.git')
call minpac#add('https://github.com/dhruvasagar/vim-table-mode.git')
call minpac#add('https://github.com/junegunn/vim-easy-align')
call minpac#add('https://github.com/romainl/vim-qf.git')
diff --git a/.vim/after/plugin/noteutil.vim b/.vim/after/plugin/noteutil.vim
index a3371c6..9747595 100644
--- a/.vim/after/plugin/noteutil.vim
+++ b/.vim/after/plugin/noteutil.vim
@@ -6,3 +6,5 @@ command! NoteutilYesterdayWeekly call noteutil#open(
\ 'journal --date yesterday --period weekly')
command! NoteutilBacklinks call noteutil#backlinks({'jump': v:true})
+
+autocmd FileType markdown setlocal omnifunc=noteutil#complete
diff --git a/.vim/pack/submodule/start/vim-javascript b/.vim/pack/submodule/start/vim-javascript
new file mode 160000
+Subproject c470ce1399a544fe587eab950f571c83cccfbbd
diff --git a/.vimrc b/.vimrc
index e247e13..4375638 100644
--- a/.vimrc
+++ b/.vimrc
@@ -20,6 +20,7 @@ set secure
set exrc
set noerrorbells
set noshowmode
+set updatetime=400
" use for populating filename in quickfix
set errorformat+=%f
@@ -50,7 +51,8 @@ if has('macunix')
set guifont=Monaco:h15
endif
-set nofoldenable
+set foldenable
+set foldlevelstart=99
set hidden
@@ -148,6 +150,7 @@ packadd! onedark.vim
silent colorscheme onedark
packadd matchit
+packadd editorconfig
if !empty(glob('~/.vim_local'))
source ~/.vim_local