1
argonaut.nvim/plugin/argonaut.lua

19 lines
473 B
Lua
Raw Normal View History

2023-01-29 03:20:14 +00:00
if not vim.g.argonaut then
local argonaut = require('argonaut')
2022-12-30 19:09:28 +00:00
2023-01-29 03:20:14 +00:00
local function argonaut_reload()
package.loaded.argonaut = nil
argonaut = require('argonaut')
end
2022-12-30 19:09:28 +00:00
2023-01-29 03:20:14 +00:00
local function argonaut_reflow()
argonaut_reload()
argonaut.reflow()
end
2022-12-30 23:10:22 +00:00
2022-12-30 19:09:28 +00:00
vim.api.nvim_create_user_command('ArgonautReload', argonaut_reload, {})
2023-01-29 03:20:14 +00:00
vim.api.nvim_create_user_command('ArgonautReflow', argonaut_reflow, {})
2022-12-30 18:40:23 +00:00
vim.g.argonaut = true
end