Add reload logic
This commit is contained in:
parent
089bb747a4
commit
8c9634e735
@ -1,5 +1,16 @@
|
|||||||
|
local argonaut = require('argonaut')
|
||||||
|
|
||||||
|
local function argonaut_wrap_toggle()
|
||||||
|
argonaut.wrap_toggle()
|
||||||
|
end
|
||||||
|
|
||||||
|
local function argonaut_reload()
|
||||||
|
package.loaded.argonaut = nil
|
||||||
|
argonaut = require('argonaut')
|
||||||
|
end
|
||||||
|
|
||||||
if not vim.g.argonaut then
|
if not vim.g.argonaut then
|
||||||
local argonaut = require('argonaut')
|
vim.api.nvim_create_user_command('ArgonautWrapToggle', argonaut_wrap_toggle, {})
|
||||||
vim.api.nvim_create_user_command('ArgonautWrapToggle', argonaut.wrap_toggle, {})
|
vim.api.nvim_create_user_command('ArgonautReload', argonaut_reload, {})
|
||||||
vim.g.argonaut = true
|
vim.g.argonaut = true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user