aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-11-20 08:56:05 +0800
committerGuangxiong Lin <[email protected]>2023-11-20 08:56:05 +0800
commit8e9362203bbac9dd6077283c73a4157cf1025329 (patch)
treea7b22ea13ecd904178eedec4ecea45c048dc0090 /.vim
parent1010c88e30999c541e4488fb5c0aad7f01147f68 (diff)
downloaddotfiles-8e9362203bbac9dd6077283c73a4157cf1025329.tar.gz
dotfiles-8e9362203bbac9dd6077283c73a4157cf1025329.tar.bz2
dotfiles-8e9362203bbac9dd6077283c73a4157cf1025329.zip
Update config
Diffstat (limited to '.vim')
-rw-r--r--.vim/after/ftplugin/markdown.vim2
-rw-r--r--.vim/after/plugin/asyncomplete.vim2
-rw-r--r--.vim/after/plugin/lsp.vim9
-rw-r--r--.vim/after/plugin/mucomplete.vim1
-rw-r--r--.vim/after/plugin/noteutil.vim2
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})