aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Seifferth <frankseifferth@posteo.net>2023-09-25 10:29:00 +0200
committerGitHub <noreply@github.com>2023-09-25 10:29:00 +0200
commitce9225364b018bab8ca5988b82a4d662c07c837e (patch)
treea2aafa01e7e1676319c9098b890f09ac8abe724b
parent1f5335b4377080eb8e57ffd2b09b31e6af29a003 (diff)
downloadvis-spellcheck-ce9225364b018bab8ca5988b82a4d662c07c837e.tar.gz
Rename 'spell_language' to 'spelling_language'
Following discussions on the editorconfig standard, I just renamed this property in the vis-editorconfig plugin (see https://github.com/seifferth/vis-editorconfig/commit/d99ec6bb31b042bf0b6111c20d622f64636d2ed6). In order to keep the naming somewhat consistent, I also updated the internal variable name that stores the spelling_language specified in editorconfig files. This commit updates the spellcheck plugin to use the updated variable name.
-rw-r--r--spellcheck.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index 94b0f57..c0082c7 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -7,8 +7,8 @@ if not spellcheck.default_lang:match('^[a-z][a-z]_[A-Z][A-Z]$') then
end
spellcheck.get_lang = function()
- if vis.win.file.spell_language then
- return vis.win.file.spell_language
+ if vis.win.file.spelling_language then
+ return vis.win.file.spelling_language
else
return spellcheck.default_lang
end