Boilerplate

This commit is contained in:
Alex Yatskov 2022-12-31 09:56:22 -08:00
parent c779055bce
commit 5a6e5ee235
3 changed files with 25 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.luarc.json

7
lua/guid.lua Normal file
View File

@ -0,0 +1,7 @@
local function guid_insert()
end
return {
guid_insert = guid_insert
}

17
plugin/guid.lua Normal file
View File

@ -0,0 +1,17 @@
local guid = require('guid')
local function guid_reload()
package.loaded.guid = nil
guid = require('guid')
end
local function guid_insert()
guid_reload()
guid.guid_insert()
end
if not vim.g.guid then
vim.api.nvim_create_user_command('GuidReload', guid_reload, {})
vim.api.nvim_create_user_command('GuidInsert', guid_insert, {})
vim.g.guid = true
end