aboutsummaryrefslogtreecommitdiff
path: root/config/vis/visrc.lua
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-03-03 17:44:39 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-03-03 17:44:39 +0100
commit1934d819cd91fde686ec70a9580c96b5c9c4f1fa (patch)
treeca59cc5c135ff2f0b6f93968db5b411b5f2f4727 /config/vis/visrc.lua
parent8ab7b85d9a13518bffdef0e165d5ada888b9e46f (diff)
downloaddotfiles-1934d819cd91fde686ec70a9580c96b5c9c4f1fa.tar.gz
dotfiles-1934d819cd91fde686ec70a9580c96b5c9c4f1fa.zip
[vis] use hunspell instead of enchant-2
Somehow enchant-2 suggestions became significantly worse.
Diffstat (limited to 'config/vis/visrc.lua')
-rw-r--r--config/vis/visrc.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua
index 20a9a9f..de12509 100644
--- a/config/vis/visrc.lua
+++ b/config/vis/visrc.lua
@@ -7,7 +7,10 @@ cursors.cursors_path = string.format('%s/vis/cursors',
os.getenv('XDG_DATA_HOME') or
os.getenv('HOME') .. "/.local/share")
-require('plugins/vis-spellcheck')
+local spellcheck = require('plugins/vis-spellcheck')
+spellcheck.list_cmd = 'hunspell -l -d %s'
+spellcheck.cmd = 'hunspell -d %s'
+
require('plugins/vis-commentary')
require('plugins/vis-ctags')
-- This hooks vis.events.START so its fine to load it before the default settings