aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorJonathan Slenders <jonathan@slenders.be>2023-11-22 13:14:58 +0100
committerGitHub <noreply@github.com>2023-11-22 20:14:58 +0800
commit9c9cbfbd02783215d82a7615bd62052d24414310 (patch)
tree8042415439b13fd124fc5cabfee2967f6683dd5e /lua
parentfix(elixirls): root_dir priority: mix.exs > .git (#2910) (diff)
downloadnvim-lspconfig-9c9cbfbd02783215d82a7615bd62052d24414310.tar
nvim-lspconfig-9c9cbfbd02783215d82a7615bd62052d24414310.tar.gz
nvim-lspconfig-9c9cbfbd02783215d82a7615bd62052d24414310.tar.bz2
nvim-lspconfig-9c9cbfbd02783215d82a7615bd62052d24414310.tar.lz
nvim-lspconfig-9c9cbfbd02783215d82a7615bd62052d24414310.tar.xz
nvim-lspconfig-9c9cbfbd02783215d82a7615bd62052d24414310.tar.zst
nvim-lspconfig-9c9cbfbd02783215d82a7615bd62052d24414310.zip
feat: add typos-lsp server (#2886)
* feat: add typos-lsp server configuration * fixup! * fixup! * fixup! --------- Co-authored-by: Raphael <glephunter@gmail.com>
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/typos_lsp.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/typos_lsp.lua b/lua/lspconfig/server_configurations/typos_lsp.lua
new file mode 100644
index 00000000..7d5da0ad
--- /dev/null
+++ b/lua/lspconfig/server_configurations/typos_lsp.lua
@@ -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
+ ]],
+ },
+}