Closed beauwilliams closed 3 years ago
We can see now after we toggle fterm closed the filetype is still set to fterm
Thanks for the fix. Although I am not sure about setting filetype twice. First being inside the :create_win
method. Thoughts?
Edit: For more context see #13 #14
I just removed the first call and it seems perfectly okay so now we have only one.
One other thing I noticed is that either way, the filetype initially (first run only) was never set to "fterm" in either case.
So I also went and pushed a fix for that. 2ea07ce
It should now have 'fterm' filetype set both on first run, and on close. It seems there are two events we need to handle so we might need to set ft for the both of them.
Thanks for the fix. Although I am not sure about setting filetype twice. First being inside the
:create_win
method. Thoughts?Edit: For more context see #13 #14
My last commit should help if not hopefully solve #13. They can use the filetype event to set options.
I think it was not working correctly earlier because 'fterm' filetype was not set on first run
Thanks for making the changes. I don't use filetype event myself but It seems fine to me.
Also, I am thinking of exposing win hl and blend option anyway. So, we should be fine.
Okay sounds good then. I think exposing those options sounds like a good idea. Probably less room for error
@beauwilliams I left a comment can you address it? After that it should be fine to merge.
@beauwilliams I left a comment can you address it? After that it should be fine to merge.
sorry I couldn't find what comment you are referring to
I mean the review suggestion above.
Do you mean add the option for hl and blend to the pr?
Nope, this one
Weird. I really can't see that suggestion.. I'll remove that line now
All done
@beauwilliams Thanks for your contribution :)
No worries 👍
this fixes this issue here: https://github.com/beauwilliams/focus.nvim/issues/49
I found sometimes the filetype changes from fterm to term.