From 8e9362203bbac9dd6077283c73a4157cf1025329 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Mon, 20 Nov 2023 08:56:05 +0800 Subject: Update config --- .vim/after/plugin/asyncomplete.vim | 2 -- .vim/after/plugin/lsp.vim | 9 +++++++++ .vim/after/plugin/mucomplete.vim | 1 + .vim/after/plugin/noteutil.vim | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) (limited to '.vim/after/plugin') diff --git a/.vim/after/plugin/asyncomplete.vim b/.vim/after/plugin/asyncomplete.vim index 7a2d7ed..7eda153 100644 --- a/.vim/after/plugin/asyncomplete.vim +++ b/.vim/after/plugin/asyncomplete.vim @@ -2,8 +2,6 @@ if has('nvim') finish endif -finish - inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index be41ceb..6641005 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -57,6 +57,15 @@ 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/mucomplete.vim b/.vim/after/plugin/mucomplete.vim index 3efbcbe..c7a05c0 100644 --- a/.vim/after/plugin/mucomplete.vim +++ b/.vim/after/plugin/mucomplete.vim @@ -1,3 +1,4 @@ +finish let g:mucomplete#enable_auto_at_startup = 1 let g:mucomplete#minimum_prefix_length = 1 let g:mucomplete#empty_text_auto = 1 diff --git a/.vim/after/plugin/noteutil.vim b/.vim/after/plugin/noteutil.vim index f84cbd5..a3371c6 100644 --- a/.vim/after/plugin/noteutil.vim +++ b/.vim/after/plugin/noteutil.vim @@ -5,4 +5,4 @@ command! NoteutilTodayWeekly call noteutil#open( command! NoteutilYesterdayWeekly call noteutil#open( \ 'journal --date yesterday --period weekly') -command! NoteutilBacklinks call noteutil#backlinks() +command! NoteutilBacklinks call noteutil#backlinks({'jump': v:true}) -- cgit v1.2.3