From dfa8c8f33192e05be2f67abdbf56c8faea4e3660 Mon Sep 17 00:00:00 2001 From: Lucas Biaggi Date: Sun, 31 Oct 2021 21:01:41 -0300 Subject: feat: add support for ltex-ls (#863) Co-authored-by: William Boman --- lua/lspconfig/ltex.lua | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lua/lspconfig/ltex.lua (limited to 'lua') diff --git a/lua/lspconfig/ltex.lua b/lua/lspconfig/ltex.lua new file mode 100644 index 00000000..bd96b00a --- /dev/null +++ b/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. + +]], + }, +} -- cgit v1.2.3-70-g09d2