From 5b19f525ad154c81de56d406dff6dfba6f5a8a66 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 22 Nov 2023 22:42:05 +0800 Subject: Update vim config --- .gitmodules | 3 +++ .vim/after/plugin/fzf.vim | 1 + .vim/after/plugin/lsp.vim | 9 --------- .vim/after/plugin/minpac.vim | 1 - .vim/after/plugin/noteutil.vim | 2 ++ .vim/pack/submodule/start/vim-javascript | 1 + .vimrc | 5 ++++- 7 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 .gitmodules create mode 160000 .vim/pack/submodule/start/vim-javascript 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 fm :FzfHistory noremap ft :FzfBTags noremap fT :FzfTags noremap fr :FzfRg +noremap rg :FzfRg noremap fc :FzfCommands noremap fgc :FzfBCommits noremap fgC :FzfCommits 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 index 0000000..c470ce1 --- /dev/null +++ b/.vim/pack/submodule/start/vim-javascript @@ -0,0 +1 @@ +Subproject commit c470ce1399a544fe587eab950f571c83cccfbbdc 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 -- cgit v1.2.3