aboutsummaryrefslogtreecommitdiffstats
path: root/Readme.md
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2017-04-07 13:06:36 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2017-04-07 13:06:36 +0200
commit003737c59668b6793d36fef4040318b999c153de (patch)
tree887f38e7b49172ff361a5255b82037f5a10649f3 /Readme.md
downloadvis-spellcheck-003737c59668b6793d36fef4040318b999c153de.tar.gz
add Readme and plugin
Diffstat (limited to 'Readme.md')
-rw-r--r--Readme.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/Readme.md b/Readme.md
new file mode 100644
index 0000000..344a6d9
--- /dev/null
+++ b/Readme.md
@@ -0,0 +1,22 @@
+# vis-spellcheck
+
+A spellchecking lua plugin for the [vis editor](https://github.com/martanne/vis).
+
+## installation
+
+1. Download 'spellcheck.lua' or clone this repository
+2. Load the plugin in your 'visrc.lua' with 'require(path/to/plugin/spellcheck)'
+
+## usage
+
++ To correct the whole file press Ctrl+s in normal mode.
+
+## configuration
+
+The module table returned from 'require(...)' has two configuration fields
+'lang' and 'cmd'. 'lang' is inserted in the 'cmd' string at '%s'.
+The defaults are 'enchant -d %s' and '$LANG or "en_US".
+
+ spell = require(...)
+ spell.cmd = "aspell -l %s -a"
+ spell.lang = "en_US"