commit af9e7f52fac0e84c221756b80ef68ae6bf3479ee
parent ccba4daa6046fbadd26e9783b45fb4c28bf10f8d
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 19 Jun 2019 15:32:50 +0200
Save and reload file before/after spell check
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua
@@ -137,7 +137,9 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win)
function()
local command = spellcheckers[vis.win.syntax]
if command then
+ vis:command(':w')
vis:command(command)
+ vis:command(':e')
else
vis:info("no spell checker found for "..vis.win.syntax)
end