Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typos-lsp server configuration. #2886

Merged
merged 4 commits into from
Nov 22, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions lua/lspconfig/server_configurations/typos_lsp.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
local util = require 'lspconfig.util'


glepnir marked this conversation as resolved.
Show resolved Hide resolved
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
]],
},
}
Loading