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

Allow enabling NoNeckPain per buffer #83

Closed
noomly opened this issue Dec 20, 2022 · 3 comments · Fixed by #154
Closed

Allow enabling NoNeckPain per buffer #83

noomly opened this issue Dec 20, 2022 · 3 comments · Fixed by #154
Labels
enhancement New feature or request need investigation When an issue lack context/is not straight forward to solve

Comments

@noomly
Copy link

noomly commented Dec 20, 2022

Describe the problem

Currently, running :NoNeckPain will enable it for every opened and new buffers.

Describe the solution

It would be nice to be able to choose whether to enable the NoNeckPain mode for every opened and new buffers or only for the current buffer. We could then be able to enable it on selected buffers rather than all of them by default. This would also, as a consequence, allow users to enable the plugin for specific filetypes using autocmd.

@noomly noomly changed the title Allow enablind NoNeckPain per buffer Allow enabling NoNeckPain per buffer Dec 20, 2022
@shortcuts shortcuts added enhancement New feature or request need investigation When an issue lack context/is not straight forward to solve labels Dec 20, 2022
@shortcuts
Copy link
Owner

Hey, do you mean you'd like the plugin to automatically enables for specific files only?

@noomly
Copy link
Author

noomly commented Jan 26, 2023

Not exactly, I was more describing having a way to enable it manually per buffer. Say I'm looking at buffer A and I also have buffer B opened, if I run the command :NoNeckPain enable-only-on-this-buffer then NoNeckPain would be enabled for buffer A. Then if I switch to buffer B, NoNeckPain would be disabled, until I switch back to buffer A.

I'm not sure how feasible that would be but it'd be very useful in my use-case.

@shortcuts
Copy link
Owner

Not exactly, I was more describing having a way to enable it manually per buffer. Say I'm looking at buffer A and I also have buffer B opened, if I run the command :NoNeckPain enable-only-on-this-buffer then NoNeckPain would be enabled for buffer A. Then if I switch to buffer B, NoNeckPain would be disabled, until I switch back to buffer A.

I'm not sure how feasible that would be but it'd be very useful in my use-case.

Ahhh that make sense, in that case it seems to perfectly suit the tab behavior on Neovim, not sure if we can abstract that at the buffer level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request need investigation When an issue lack context/is not straight forward to solve
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants