From e206b98b90641bda6e14bbed087af1a58c2dc925 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 21 Jan 2023 09:24:00 +0800 Subject: Some vim config --- .vim/after/ftplugin/markdown.vim | 4 ++-- .vim/after/plugin/asyncomplete.vim | 18 +++++++++--------- .vim/after/plugin/lsp.vim | 14 +++++++------- .vim/after/plugin/markdown.vim | 1 + 4 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 .vim/after/plugin/markdown.vim (limited to '.vim') diff --git a/.vim/after/ftplugin/markdown.vim b/.vim/after/ftplugin/markdown.vim index 514a4f1..cdbc002 100644 --- a/.vim/after/ftplugin/markdown.vim +++ b/.vim/after/ftplugin/markdown.vim @@ -1,5 +1,5 @@ nmap j gj nmap k gk -setlocal formatoptions-=t -setlocal formatoptions-=c +" setlocal formatoptions-=t +" setlocal formatoptions-=c diff --git a/.vim/after/plugin/asyncomplete.vim b/.vim/after/plugin/asyncomplete.vim index 193364d..8e96762 100644 --- a/.vim/after/plugin/asyncomplete.vim +++ b/.vim/after/plugin/asyncomplete.vim @@ -18,15 +18,15 @@ au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#source \ 'completor': function('asyncomplete#sources#ultisnips#completor'), \ })) -packadd asyncomplete-tags.vim -au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#tags#get_source_options({ - \ 'name': 'tags', - \ 'allowlist': ['*'], - \ 'completor': function('asyncomplete#sources#tags#completor'), - \ 'config': { - \ 'max_file_size': 50000000, - \ }, - \ })) +" packadd asyncomplete-tags.vim +" au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#tags#get_source_options({ +" \ 'name': 'tags', +" \ 'allowlist': ['*'], +" \ 'completor': function('asyncomplete#sources#tags#completor'), +" \ 'config': { +" \ 'max_file_size': 50000000, +" \ }, +" \ })) packadd asyncomplete-file.vim au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({ diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index 4bc1a0f..c2293f1 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -56,13 +56,13 @@ if executable('godot') endif " https://github.com/mickael-menu/zk -if executable('zk') - au User lsp_setup call lsp#register_server({ - \ 'name': 'zk', - \ 'cmd': {server_info->['zk', 'lsp']}, - \ 'allowlist': ['markdown'], - \ }) -endif +" if executable('zk') +" au User lsp_setup call lsp#register_server({ +" \ 'name': 'zk', +" \ 'cmd': {server_info->['zk', 'lsp']}, +" \ 'allowlist': ['markdown'], +" \ }) +" endif if executable('rust-analyzer') au User lsp_setup call lsp#register_server({ diff --git a/.vim/after/plugin/markdown.vim b/.vim/after/plugin/markdown.vim new file mode 100644 index 0000000..83ed7a1 --- /dev/null +++ b/.vim/after/plugin/markdown.vim @@ -0,0 +1 @@ +let g:vim_markdown_new_list_item_indent = 2 -- cgit v1.2.3