Boilerplate
This commit is contained in:
parent
c779055bce
commit
5a6e5ee235
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.luarc.json
|
7
lua/guid.lua
Normal file
7
lua/guid.lua
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
local function guid_insert()
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
guid_insert = guid_insert
|
||||||
|
}
|
17
plugin/guid.lua
Normal file
17
plugin/guid.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user