From 350cb8780444d271fd3dfc938fe1ffe9fe870c51 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 6 Feb 2021 12:41:20 +0100 Subject: add init.lua and update usage information in Readme The init.lua file is only a thin wrapper around a dofile call which loads the actual plugin code in spellcheck.lua and returns the result. Closes #5. --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 init.lua (limited to 'init.lua') diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..40253f2 --- /dev/null +++ b/init.lua @@ -0,0 +1,6 @@ +-- Copyright (c) 2021 Florian Fischer. All rights reserved. +-- Use of this source code is governed by a MIT license found in the LICENSE file. +local source_str = debug.getinfo(1, "S").source:sub(2) +local script_path = source_str:match("(.*/)") + +return dofile(script_path .. 'spellcheck.lua') \ No newline at end of file -- cgit v1.2.3