if not vim.g.argonaut_loaded then local function argonaut_reload() for name, _ in pairs(package.loaded) do if vim.startswith(name, 'argonaut') then package.loaded[name] = nil end end end local function argonaut_auto_reload() if require('argonaut').query('auto_reload') then argonaut_reload() end end local function argonaut_reflow() argonaut_auto_reload() require('argonaut').reflow() end local function argonaut_inspect() argonaut_auto_reload() require('argonaut').inspect() end vim.api.nvim_create_user_command('ArgonautReload', argonaut_reload, {}) vim.api.nvim_create_user_command('ArgonautReflow', argonaut_reflow, {}) vim.api.nvim_create_user_command('ArgonautInspect', argonaut_inspect, {}) vim.g.argonaut_loaded = true end