Skip to content

Commit eb6f01c

Browse files
authored
feat: autocorrect #4542
1 parent a9bb4d5 commit eb6f01c

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎lsp/autocorrect.lua‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---@brief
2+
---
3+
--- https://github.com/huacnlee/autocorrect
4+
---
5+
--- AutoCorrect checks and fixes spacing, punctuation, and spelling between CJK (Chinese, Japanese, Korean) and English
6+
--- text. It checks the strings and comments of source files, and the full text of Markdown and plain text files.
7+
---
8+
--- `autocorrect` can be installed with Homebrew:
9+
--- ```sh
10+
--- brew install autocorrect
11+
--- ```
12+
---
13+
--- Or downloaded from the [GitHub releases page](https://github.com/huacnlee/autocorrect/releases).
14+
15+
---@type vim.lsp.Config
16+
return {
17+
cmd = { 'autocorrect', 'server' },
18+
-- autocorrect reads .autocorrectrc and .autocorrectignore only from the root directory.
19+
root_markers = { '.autocorrectrc', '.autocorrectignore', '.git' },
20+
}

0 commit comments

Comments
 (0)