Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: William Boman <william@redwill.se>
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
]], | ||
}, | ||
} |