mirror of
https://oauth2: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@github.com/m1ngsama/chopsticks.git
synced 2026-05-10 19:10:59 +08:00
fix: round 2 — completion speed, octal numbers, dead files
- 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)
This commit is contained in:
parent
575ff2c489
commit
cc328cebf2
4 changed files with 4 additions and 15 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,5 +1,3 @@
|
|||
*.json
|
||||
!coc-settings.json
|
||||
*.swp
|
||||
*.swo
|
||||
.DS_Store
|
||||
|
|
|
|||
5
.vimrc
5
.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 <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 |
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"languageserver": {
|
||||
"marksman": {
|
||||
"command": "marksman",
|
||||
"args": ["server"],
|
||||
"filetypes": ["markdown"],
|
||||
"rootPatterns": [".git", ".marksman.toml"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue