2023-01-25 06:33:01 +00:00
|
|
|
if not vim.g.hflip then
|
2023-01-26 03:56:57 +00:00
|
|
|
local revolver = require('revolver')
|
|
|
|
|
2023-01-25 06:33:01 +00:00
|
|
|
local function reload()
|
|
|
|
package.loaded.revolver = nil
|
|
|
|
revolver = require('revolver')
|
|
|
|
end
|
|
|
|
|
|
|
|
local function revolve()
|
|
|
|
revolver.revolve(false)
|
|
|
|
end
|
|
|
|
|
|
|
|
local function revolve_back()
|
|
|
|
revolver.revolve(true)
|
|
|
|
end
|
|
|
|
|
|
|
|
vim.api.nvim_create_user_command('Revolver', revolve, {})
|
|
|
|
vim.api.nvim_create_user_command('RevolverBack', revolve_back, {})
|
|
|
|
vim.api.nvim_create_user_command('RevolverReload', reload, {})
|
|
|
|
|
|
|
|
vim.g.revolver = true
|
|
|
|
end
|