Skip to content

Commit

Permalink
feat: add support for ltex-ls
Browse files Browse the repository at this point in the history
Co-authored-by: William Boman <william@redwill.se>
  • Loading branch information
2 people authored and mjlbach committed Oct 31, 2021
1 parent 3d092fc commit 39caff8
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions lua/lspconfig/ltex.lua
@@ -0,0 +1,37 @@
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'

configs.ltex = {
default_config = {
cmd = { "ltex-ls" },
filetypes = { "tex", "bib", "markdown" },
root_dir = util.find_git_ancestor,
settings = {
ltex = {
enabled = { "latex", "tex", "bib", "markdown" },
checkFrequency = "edit",
language = "en",
diagnosticSeverity = "information",
setenceCacheSize = 2000,
additionalRules = {
enablePickyRules = true,
motherTongue = "en",
},
dictionary = {},
disabledRules = {},
hiddenFalsePositives = {},
},
},
},
docs = {
package_json = "https://raw.githubusercontent.com/valentjn/vscode-ltex/develop/package.json",
description = [[
https://github.com/valentjn/ltex-ls
LTeX Language Server: LSP language server for LanguageTool 🔍✔️ with support for LaTeX 🎓, Markdown 📝, and others
To install, download the latest [release](https://github.com/valentjn/ltex-ls/releases) and ensure `ltex-ls` is on your path.
]],
},
}

0 comments on commit 39caff8

Please sign in to comment.