diff options
Diffstat (limited to 'plugins/spellcheck.lua')
-rw-r--r-- | plugins/spellcheck.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/spellcheck.lua b/plugins/spellcheck.lua index 64cd6f3..1f29792 100644 --- a/plugins/spellcheck.lua +++ b/plugins/spellcheck.lua @@ -7,7 +7,12 @@ local DocView = require "core.docview" local Doc = require "core.doc" config.spellcheck_files = { "%.txt$", "%.md$", "%.markdown$" } -config.dictionary_file = "/usr/share/dict/words" +if PLATFORM == "Windows" then + config.dictionary_file = EXEDIR .. "/words.txt" +else + config.dictionary_file = "/usr/share/dict/words" +end + local last_input_time = 0 local word_pattern = "%a+" @@ -172,4 +177,3 @@ command.add("core.docview", { end, }) - |