From 82d997d928347c537489c081a6e40379116f3ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Tue, 5 Jul 2022 20:50:55 +0200 Subject: [PATCH] Ignore whitespace rule --- nvim/lua/lsp_config.lua | 2 +- nvim/spell/ltex.dictionary.en-GB.txt | 9 +++++++++ nvim/spell/ltex.disabledRules.en-GB.txt | 2 ++ nvim/spell/ltex.hiddenFalsePositives.en-GB.txt | 1 + 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 nvim/spell/ltex.disabledRules.en-GB.txt diff --git a/nvim/lua/lsp_config.lua b/nvim/lua/lsp_config.lua index 43e39be..5b92750 100644 --- a/nvim/lua/lsp_config.lua +++ b/nvim/lua/lsp_config.lua @@ -173,7 +173,7 @@ require('lspconfig').ltex.setup { settings = { ltex = { enabled = {"latex", "tex", "bib", "md", "text"}, - language="en-GB", + language = "en-GB" } } } diff --git a/nvim/spell/ltex.dictionary.en-GB.txt b/nvim/spell/ltex.dictionary.en-GB.txt index 51296d7..f52164d 100644 --- a/nvim/spell/ltex.dictionary.en-GB.txt +++ b/nvim/spell/ltex.dictionary.en-GB.txt @@ -16,3 +16,12 @@ XS DoReFa DoReFa-Net dequantized +Tarrasque +Liefstein +Juandissimo +Philfather +lich +liches +Archfey +Feywild +Bulette diff --git a/nvim/spell/ltex.disabledRules.en-GB.txt b/nvim/spell/ltex.disabledRules.en-GB.txt new file mode 100644 index 0000000..9fa7926 --- /dev/null +++ b/nvim/spell/ltex.disabledRules.en-GB.txt @@ -0,0 +1,2 @@ +WHITESPACE_RULE +PROFANITY diff --git a/nvim/spell/ltex.hiddenFalsePositives.en-GB.txt b/nvim/spell/ltex.hiddenFalsePositives.en-GB.txt index d6d2b24..60352e5 100644 --- a/nvim/spell/ltex.hiddenFalsePositives.en-GB.txt +++ b/nvim/spell/ltex.hiddenFalsePositives.en-GB.txt @@ -5,3 +5,4 @@ {"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\QNetwork Conv.\\E$"} {"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Q1 Conv.\\E$"} {"rule":"MORFOLOGIK_RULE_EN_GB","sentence":"^\\Q2 Conv.\\E$"} +{"rule":"ALLOW_TO","sentence":"^\\QA footnote says that in theory certain intelligent monstrosities could also train to become more powerful and throw off the bindings of age.\\E$"}