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

Add line wrapping or custom filetype #15

Open
piersolenski opened this issue Oct 6, 2023 · 2 comments
Open

Add line wrapping or custom filetype #15

piersolenski opened this issue Oct 6, 2023 · 2 comments

Comments

@piersolenski
Copy link

Hey! Love this plugin, it's minimalist approach fits my needs perfectly.

It would be great to have line wrapping, especially in split windows.

I have setlocal wrap linebreak nolist textwidth=0 for the markdown filetype, but it's currently working with FlyboyOpenVSplit.

A custom filetype in general might be useful, then you could also do specific Flyboy bindings, such as FlyboySendMessage once you're in a Flyboy window? As long as it still adopts the markdown syntax!

@CamdenClark
Copy link
Owner

Hey, thanks for the issue!

I'm a little wary of using a custom filetype, I worry that people already have integrations set up for markdown that would break if there's a custom filetype. I don't want to be too prescriptive with a bunch of keybindings that people are just going to rebind either 🤔

Could I fix this by having an on_open function hook in the setup? That might allow you to run specific things in the buffer opened by Flyboy.

@CamdenClark
Copy link
Owner

IE even for myself I have a filetype markdown autoformatter. But maybe people should opt in to using that with flyboy buffers. I'll have to give it a bit more thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants