Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:SatelliteToggle #34

Open
luiz00martins opened this issue Dec 24, 2022 · 0 comments
Open

:SatelliteToggle #34

luiz00martins opened this issue Dec 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@luiz00martins
Copy link

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 luiz00martins added the enhancement New feature or request label Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant