satellite.nvim icon indicating copy to clipboard operation
satellite.nvim copied to clipboard

`:SatelliteToggle`

Open luiz00martins opened this issue 2 years ago • 0 comments

Describe the solution you'd like Exactly what is sounds like.

If satellite.nvim is enabled, it executes :SatelliteDisable. If satellite.nvim is disabled, it executes :SatelliteEnable.

Describe alternatives you've considered

local scrollbar_enabled = true
function toggle_scrollbar()
	if scrollbar_enabled then
		vim.cmd(':SatelliteDisable')
	else
		vim.cmd(':SatelliteEnable')
	end

	scrollbar_enabled = not scrollbar_enabled
end
map('n', ' os', toggle_scrollbar)

Not exactly hard to implement yourself, but I think it makes sense inside the plugin.

luiz00martins avatar Dec 24 '22 23:12 luiz00martins