docs: sync README with expanded language coverage (#8)

- Add coc-marksman and coc-sql to manual CocInstall example
- Note that install.sh handles all extensions automatically
- Update vim-lsp supported languages list (6 → 12 languages)
- Expand language support table: add CSS/SCSS, Less, SQL rows;
  fill in linters for CSS (stylelint), Markdown (markdownlint), SQL (sqlfluff)
- Clarify ALE fix_on_save behavior note
This commit is contained in:
m1ngsama 2026-03-28 18:32:52 +08:00 committed by GitHub
parent 43baa9753a
commit b329c5f301
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,18 +90,22 @@ Install language server extensions from inside Vim:
:CocInstall coc-rust-analyzer " Rust :CocInstall coc-rust-analyzer " Rust
:CocInstall coc-json coc-yaml " JSON, YAML :CocInstall coc-json coc-yaml " JSON, YAML
:CocInstall coc-html coc-css " HTML, CSS :CocInstall coc-html coc-css " HTML, CSS
:CocInstall coc-marksman " Markdown
:CocInstall coc-sql " SQL
``` ```
`install.sh` installs all of the above automatically when prompted.
### vim-lsp setup (without Node.js) ### vim-lsp setup (without Node.js)
Install language server binaries for your languages, then run: Install language server binaries for your languages, then run:
```vim ```vim
:LspInstallServer " auto-installs servers for the current filetype :LspInstallServer " auto-installs the right server for the current filetype
``` ```
Supported: `pylsp`, `gopls`, `rust-analyzer`, `typescript-language-server`, Supported languages: Python, Go, Rust, TypeScript, JavaScript, Shell,
`bash-language-server`, and all others covered by `vim-lsp-settings`. HTML, CSS/SCSS, JSON, YAML, Markdown, SQL — via `vim-lsp-settings`.
--- ---
@ -299,7 +303,7 @@ on a basic built-in terminal. In TTY mode:
## Language Support ## Language Support
| Language | Indent | Formatter | Linter | | Language | Indent | Formatter | Linter |
|----------------|--------|---------------|---------------------| |----------------|--------|------------------|--------------------------|
| Python | 4sp | black + isort | flake8, pylint | | Python | 4sp | black + isort | flake8, pylint |
| JavaScript | 2sp | prettier | eslint | | JavaScript | 2sp | prettier | eslint |
| TypeScript | 2sp | prettier | eslint, tsserver | | TypeScript | 2sp | prettier | eslint, tsserver |
@ -307,13 +311,16 @@ on a basic built-in terminal. In TTY mode:
| Rust | 4sp | rustfmt | cargo | | Rust | 4sp | rustfmt | cargo |
| Shell | 2sp | - | shellcheck | | Shell | 2sp | - | shellcheck |
| YAML | 2sp | prettier | yamllint | | YAML | 2sp | prettier | yamllint |
| HTML/CSS | 2sp | prettier | - | | HTML | 2sp | prettier | - |
| Markdown | 2sp | prettier | - | | CSS / SCSS | 2sp | prettier | stylelint |
| Less | 2sp | prettier | - |
| JSON | 2sp | prettier | - | | JSON | 2sp | prettier | - |
| Markdown | 2sp | prettier | markdownlint |
| SQL | 4sp | sqlfmt | sqlfluff |
| Dockerfile | 2sp | - | hadolint | | Dockerfile | 2sp | - | hadolint |
Install linters separately (e.g. `pip install black flake8`, `npm i -g prettier`). Install linters separately `install.sh` lists the exact commands.
ALE runs them asynchronously and auto-fixes on save. ALE runs them asynchronously on save (`ale_fix_on_save = 1` when using CoC).
--- ---