aboutsummaryrefslogtreecommitdiff
path: root/spellcheck.lua
diff options
context:
space:
mode:
authorNomarian <nomarian@outlook.com>2025-10-09 10:20:13 -0400
committerNomarian <nomarian@outlook.com>2025-10-09 10:20:13 -0400
commit79ed74eafe28bd22dab717d1504171d775888135 (patch)
tree58b1057365010eb4334da85c8814bcb141e2bc60 /spellcheck.lua
parent727be9c088ca2b40f00d1d6e25ae70e4b504c436 (diff)
downloadvis-spellcheck-79ed74eafe28bd22dab717d1504171d775888135.tar.gz
vis-spellcheck-79ed74eafe28bd22dab717d1504171d775888135.zip
Shut up luacheck
Diffstat (limited to 'spellcheck.lua')
-rw-r--r--spellcheck.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index 63eb0f4..b5d99fb 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -1,5 +1,7 @@
-- Copyright (c) 2017-2019 Florian Fischer. All rights reserved.
-- Use of this source code is governed by a MIT license found in the LICENSE file.
+local vis = _G.vis
+
local spellcheck = {}
spellcheck.default_lang = (os.getenv('VIS_SPELLLANG') or os.getenv('LANG') or ''):gsub('[.].*', '')
if not spellcheck.default_lang:match('^[a-z][a-z]_[A-Z][A-Z]$') then