Skip to content

Commit

Permalink
feat: add typos-lsp server (#2886)
Browse files Browse the repository at this point in the history
* feat: add typos-lsp server configuration

* fixup!

* fixup!

* fixup!

---------

Co-authored-by: Raphael <[email protected]>
  • Loading branch information
jonathanslenders and glepnir authored Nov 22, 2023
1 parent 3ede70c commit 9c9cbfb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lua/lspconfig/server_configurations/typos_lsp.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
local util = require 'lspconfig.util'

return {
default_config = {
cmd = { 'typos-lsp' },
filetypes = { '*' },
root_dir = util.root_pattern('pyproject.toml', '.git'),
single_file_support = true,
settings = {},
},
docs = {
description = [[
https://github.com/crate-ci/typos
https://github.com/tekumara/typos-vscode
A Language Server Protocol implementation for Typos, a low false-positive
source code spell checker, written in Rust. Download it from the releases page
on GitHub: https://github.com/tekumara/typos-vscode/releases
]],
},
}

0 comments on commit 9c9cbfb

Please sign in to comment.