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

Set filetype for TOC window #2418

Closed
lambtho12 opened this issue Jun 22, 2022 · 3 comments
Closed

Set filetype for TOC window #2418

lambtho12 opened this issue Jun 22, 2022 · 3 comments

Comments

@lambtho12
Copy link

Is your feature request related to a problem? Please describe it.
The current TOC window has no filetype. Defining a filetype for would allow other plugins to detect it and act accordingly.
In specific, the akinsho/bufferline plugin can offset the bufferline (tagline) for vertical windows such as a treeview, etc. This offset works by detecting the filetype of the opened window.

Describe the solution you'd like
Set filetype=vimtex-toc or something like that for this window by default. I don't think this would cause any issue, especially considering that no filetype is currently set.

lervag added a commit that referenced this issue Jun 22, 2022
@lervag
Copy link
Owner

lervag commented Jun 22, 2022

I don't see a problem with this request. I've added this now, please test and let me know if it works as expected for you.

@lervag lervag closed this as completed Jun 22, 2022
@lambtho12
Copy link
Author

Awesome! It works as expected.
Thank you very much for your quick response and for this amazing plugin!

@lervag
Copy link
Owner

lervag commented Jun 23, 2022

Great! Thanks for the kind words :)

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

No branches or pull requests

2 participants