aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-01-21 09:24:00 +0800
committerGuangxiong Lin <[email protected]>2023-01-21 09:24:00 +0800
commite206b98b90641bda6e14bbed087af1a58c2dc925 (patch)
treea6faa0c95f6b7e24b0cc57b986382549b80b6f0e
parent1a25a60618a2880f5b9e163566fd8c12a4a079b2 (diff)
downloaddotfiles-e206b98b90641bda6e14bbed087af1a58c2dc925.tar.gz
dotfiles-e206b98b90641bda6e14bbed087af1a58c2dc925.tar.bz2
dotfiles-e206b98b90641bda6e14bbed087af1a58c2dc925.zip
Some vim config
-rw-r--r--.vim/after/ftplugin/markdown.vim4
-rw-r--r--.vim/after/plugin/asyncomplete.vim18
-rw-r--r--.vim/after/plugin/lsp.vim14
-rw-r--r--.vim/after/plugin/markdown.vim1
4 files changed, 19 insertions, 18 deletions
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 <buffer> j gj
nmap <buffer> 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