mirror of
https://oauth2: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@github.com/m1ngsama/chopsticks.git
synced 2026-05-10 19:10:59 +08:00
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:
parent
43baa9753a
commit
b329c5f301
1 changed files with 25 additions and 18 deletions
43
README.md
43
README.md
|
|
@ -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`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -298,22 +302,25 @@ 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 |
|
||||||
| Go | tab | gofmt, goimports | gopls, golint |
|
| Go | tab | gofmt, goimports | gopls, golint |
|
||||||
| 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 |
|
||||||
| JSON | 2sp | prettier | - |
|
| Less | 2sp | prettier | - |
|
||||||
| Dockerfile | 2sp | - | hadolint |
|
| JSON | 2sp | prettier | - |
|
||||||
|
| Markdown | 2sp | prettier | markdownlint |
|
||||||
|
| SQL | 4sp | sqlfmt | sqlfluff |
|
||||||
|
| 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).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue