vlabo / cspell-lsp

A simple source code spell checker for helix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spell Checker LSP

This extension performs spell checking in source code files, using the cspell library.

This is a fork of vscode-spell-checker and adapted to work with the Helix text editor.

Build

npm install
npm run build

Install

npm link

Helix config

helix/languages.toml:

[language-server.cspell]
command = "cspell-lsp"
args = ["--stdio"]

# Add for every language that you want to spell check
[[language]]
name = "rust"
language-servers = ["rust-analyzer", "cspell"]

[[language]]
name = "cpp"
language-servers = [ "clangd", "cspell" ]

[[language]]
name = "markdown"
language-servers = [ "marksman", "cspell" ]

For reference https://github.com/helix-editor/helix/blob/86023cf1e6c9ab12446061e40c838335c5790979/languages.toml

Custom dictionaries and configurations are not supported

About

A simple source code spell checker for helix

License:Other


Languages

Language:TypeScript 96.7%Language:JavaScript 2.7%Language:Jupyter Notebook 0.4%Language:C 0.2%Language:Python 0.1%