typos-lsp
typos-lsp copied to clipboard
Source code spell checker for Visual Studio Code, Neovim and other LSP clients
With this PR, development with Nix/NixOS and integrating into the github:NixOS/nixpkgs is easy and would allow building a typos-lsp binary executable for VS Code/Codium Extension in NixOS.
> I would love to have a setting to set milliseconds delay in checking. Because even while I have typed "beca" it gives the underline and doesn't let me complete...
For typos that have a single possible correction offer the [fix all code action ](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#:~:text=3.17.0%0A%09%20*/%0A%09export%20const-,SourceFixAll,-%3A%20CodeActionKind%20%3D)
Commonly, LSPs provide formatting capabilities (`documentFormattingProvider`). For typos, it could be useful be able to autofix misspellings via LSP-formatting. Essentially what `typos --write-changes` does, only triggered from inside the IDE.
Ideally also solving [this memory leak](https://github.com/tekumara/typos-lsp/blob/df114108aee845d5a06e2c0ba2c602bad153bacb/crates/typos-lsp/src/typos.rs#L16).
Here's a draft on what could become the solution for https://github.com/tekumara/typos-lsp/issues/12 This adds a code action like this: Selecting the code action will make the lsp server to edit the...
When using `:LspStop` (provided by nvim-lspconfig) in Neovim, the diagnostics are cleared for other LSPs attached to the buffer, but not for typos-lsp. Furthermore, doing `:LspStart` doesn't seem to make...