diff options
-rw-r--r-- | .vim/after/ftplugin/markdown.vim | 2 | ||||
-rw-r--r-- | .vim/after/plugin/asyncomplete.vim | 2 | ||||
-rw-r--r-- | .vim/after/plugin/lsp.vim | 9 | ||||
-rw-r--r-- | .vim/after/plugin/mucomplete.vim | 1 | ||||
-rw-r--r-- | .vim/after/plugin/noteutil.vim | 2 |
5 files changed, 13 insertions, 3 deletions
diff --git a/.vim/after/ftplugin/markdown.vim b/.vim/after/ftplugin/markdown.vim index b7cd446..c60318a 100644 --- a/.vim/after/ftplugin/markdown.vim +++ b/.vim/after/ftplugin/markdown.vim @@ -3,5 +3,7 @@ nmap <buffer> k gk autocmd CursorHold,CursorHoldI <buffer> update +setlocal iskeyword+=[ + " setlocal formatoptions-=t " setlocal formatoptions-=c 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 <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" inoremap <expr> <cr> pumvisible() ? "\<c-y>" : "\<cr>" 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}) |