From cc328cebf2504dc5ae84631412f1a72e86f1957b Mon Sep 17 00:00:00 2001 From: m1ngsama Date: Tue, 21 Apr 2026 23:32:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20round=202=20=E2=80=94=20completion=20spe?= =?UTF-8?q?ed,=20octal=20numbers,=20dead=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Reduce asyncomplete popup delay 200ms→50ms for snappier completion - Add nrformats-=octal: Ctrl-A on 007 now goes to 008, not 010 - Add formatoptions+=j: joining comment lines removes duplicate leaders - Remove coc-settings.json (vestigial, CoC not used) - Fix .gitignore: was blocking all *.json files unnecessarily - Update README: Python LSP is pylsp only (pyright removed) --- .gitignore | 2 -- .vimrc | 5 +++-- README.md | 2 +- coc-settings.json | 10 ---------- 4 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 coc-settings.json diff --git a/.gitignore b/.gitignore index b1a4e2a..5998a6f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -*.json -!coc-settings.json *.swp *.swo .DS_Store diff --git a/.vimrc b/.vimrc index a06945b..6762a4a 100644 --- a/.vimrc +++ b/.vimrc @@ -52,6 +52,7 @@ set foldlevel=99 set splitbelow set splitright set backspace=indent,eol,start +set nrformats-=octal set autoread set cmdheight=1 set hidden @@ -518,7 +519,7 @@ endif set pumheight=15 let g:asyncomplete_auto_popup = 1 let g:asyncomplete_auto_completeopt = 0 -let g:asyncomplete_popup_delay = 200 +let g:asyncomplete_popup_delay = 50 " Completion popup navigation inoremap pumvisible() ? "\" : "\" @@ -818,7 +819,7 @@ endfunc " Suppress comment continuation on Enter / o / O augroup ChopstickFormatOptions autocmd! - autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o + autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o formatoptions+=j augroup END " Auto-disable paste mode on leaving insert diff --git a/README.md b/README.md index e65bd42..2b64bbb 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Supported languages and their servers: | Language | Server | |----------|--------| -| Python | pylsp / pyright | +| Python | pylsp | | JavaScript / TypeScript | typescript-language-server | | Go | gopls | | Rust | rust-analyzer | diff --git a/coc-settings.json b/coc-settings.json deleted file mode 100644 index 8f1c114..0000000 --- a/coc-settings.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "languageserver": { - "marksman": { - "command": "marksman", - "args": ["server"], - "filetypes": ["markdown"], - "rootPatterns": [".git", ".marksman.toml"] - } - } -}