This commit is contained in:
u80864958 2024-10-04 22:25:53 +02:00
commit 19dfa6b663
3 changed files with 31 additions and 0 deletions

0
README.md Normal file
View File

12
lua/timer/init.lua Normal file
View File

@ -0,0 +1,12 @@
-- Creates an object for the module. All of the module's
-- functions are associated with this object, which is
-- returned when the module is called with `require`.
local M = {}
function M.greet()
print("Hello World")
end
-- Routes calls made to this module to functions in the
-- plugin's other modules.
return M

19
plugin/timer.vim Normal file
View File

@ -0,0 +1,19 @@
" Title: Example Plugin
" Description: A plugin to provide an example for creating Neovim plugins.
" Last Change: 8 November 2021
" Maintainer: Example User <https://github.com/example-user>
" Prevents the plugin from being loaded multiple times. If the loaded
" variable exists, do nothing more. Otherwise, assign the loaded
" variable and continue running this instance of the plugin.
if exists("g:loaded_exampleplugin")
finish
endif
let g:loaded_exampleplugin = 1
" Defines a package path for Lua. This facilitates importing the
" Lua modules from the plugin's dependency directory.
let s:lua_rocks_deps_loc = expand("<sfile>:h:r") . "/../lua/example-plugin/deps"
exe "lua package.path = package.path .. '"
" Exposes the plugin's functions for use as commands in Neovim.
command! -nargs=0 Greet lua require("example-plugin").greet()