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 --- .vim/after/plugin/fzf.vim | 1 + .vim/after/plugin/lsp.vim | 9 --------- .vim/after/plugin/minpac.vim | 1 - .vim/after/plugin/noteutil.vim | 2 ++ 4 files changed, 3 insertions(+), 10 deletions(-) (limited to '.vim/after/plugin') 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 -- cgit v1.2.3