aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-08-27 15:53:43 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-08-27 15:53:43 +0200
commite23acde38af03a1610dacfb236dc7a2b303faac0 (patch)
tree99ea0b4174b43ab9162fb1d49d7998f109860f82
parent04ab455907fe7da054aeefe05b0be0b534affccd (diff)
downloadvis-spellcheck-e23acde38af03a1610dacfb236dc7a2b303faac0.tar.gz
vis-spellcheck-e23acde38af03a1610dacfb236dc7a2b303faac0.zip
add vis.lexers.DEFAULT to the tokens we spellcheck
This activates spellchecking for most "text focused" languages like latex or markdown.
-rw-r--r--spellcheck.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index ebfe660..3d53d56 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -28,10 +28,10 @@ spellcheck.disable_syntax_awareness = false
spellcheck.check_tokens = {
[vis.lexers.STRING] = true,
- [vis.lexers.COMMENT] = true
+ [vis.lexers.COMMENT] = true,
+ [vis.lexers.DEFAULT] = true,
}
-
-- Return nil or a string of misspelled word in a specific file range or text
-- by calling the spellchecker's list command.
-- If given a range we will use vis:pipe to get our typos from the spellchecker.