Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.05 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.05 KB

Spell Checker LSP

This lsp 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
This was intended as a fork to but its now rewriten to be general basic spell check for the Helix text editor and hopfaly other editors.

Install

npm install -g @vlabo/cspell-lsp

Helix config

helix/languages.toml:

[language-server.cspell]
command = "cspell-lsp"
args = ["--stdio", "--dictionary", "<path to dictionary file>"]

# 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

Build

npm install
npm run build