aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-07-12 18:37:07 -0400
committerFlorian Fischer <florian.fischer@muhq.space>2025-07-12 18:37:07 -0400
commit727be9c088ca2b40f00d1d6e25ae70e4b504c436 (patch)
tree6ea29f53c47d6f3cf7fc1436529a16299587ba22
parent50bf2ce7bc73c49290c82922b3f4be584b49722a (diff)
downloadvis-spellcheck-727be9c088ca2b40f00d1d6e25ae70e4b504c436.tar.gz
vis-spellcheck-727be9c088ca2b40f00d1d6e25ae70e4b504c436.zip
remove unused parameter and replace tabs with spaces
-rw-r--r--spellcheck.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index 72e92b3..63eb0f4 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -9,11 +9,11 @@ end
spellcheck.spelling_autoenable = false
spellcheck.get_lang = function()
- if vis.win and vis.win.file.spelling_language then
- return vis.win.file.spelling_language
- else
- return spellcheck.default_lang
- end
+ if vis.win and vis.win.file.spelling_language then
+ return vis.win.file.spelling_language
+ else
+ return spellcheck.default_lang
+ end
end
local supress_stdout = ' >/dev/null'
@@ -306,7 +306,7 @@ vis:map(vis.modes.NORMAL, '<C-w>e', function()
enable_spellcheck()
end, 'Enable spellchecking in the current window')
-vis.events.subscribe(vis.events.WIN_OPEN, function(win)
+vis.events.subscribe(vis.events.WIN_OPEN, function()
if vis.win.file.spelling_language and spellcheck.spelling_autoenable then
enable_spellcheck()
end