diff --git a/plugin/guid.lua b/plugin/guid.lua index 85cd33e..8337dba 100644 --- a/plugin/guid.lua +++ b/plugin/guid.lua @@ -1,4 +1,6 @@ if not vim.g.guid then + local guid = require('guid') + local function reload() package.loaded.guid = nil guid = require('guid') @@ -17,7 +19,6 @@ if not vim.g.guid then end math.randomseed(os.time()) - reload() vim.api.nvim_create_user_command('GuidFormat', format, {nargs = '?'}) vim.api.nvim_create_user_command('GuidInsert', insert, {nargs = '?'})