aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorLucas Biaggi <lbjanuario@gmail.com>2021-10-31 21:01:41 -0300
committerGitHub <noreply@github.com>2021-10-31 17:01:41 -0700
commitdfa8c8f33192e05be2f67abdbf56c8faea4e3660 (patch)
tree5907102b04b04a4ab3b1c0a2749a44371c949016 /lua
parentdocs: update CONFIG.md (diff)
downloadnvim-lspconfig-dfa8c8f33192e05be2f67abdbf56c8faea4e3660.tar
nvim-lspconfig-dfa8c8f33192e05be2f67abdbf56c8faea4e3660.tar.gz
nvim-lspconfig-dfa8c8f33192e05be2f67abdbf56c8faea4e3660.tar.bz2
nvim-lspconfig-dfa8c8f33192e05be2f67abdbf56c8faea4e3660.tar.lz
nvim-lspconfig-dfa8c8f33192e05be2f67abdbf56c8faea4e3660.tar.xz
nvim-lspconfig-dfa8c8f33192e05be2f67abdbf56c8faea4e3660.tar.zst
nvim-lspconfig-dfa8c8f33192e05be2f67abdbf56c8faea4e3660.zip
feat: add support for ltex-ls (#863)
Co-authored-by: William Boman <william@redwill.se>
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/ltex.lua37
1 files changed, 37 insertions, 0 deletions
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.
+
+]],
+ },
+}