-
Notifications
You must be signed in to change notification settings - Fork 23
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 display_location by filetype #135
Comments
That makes sense, and I'm fact it might even make sense to extend this to the other display_* options. Hopefully a fairly straightforward change; I'll work on this. Thanks for the feedback. |
OK, I've had a think about the right way to implement this. What I think I'll do is that for now I will support Then, to add flexibility, I will work longer-term on implementing #21, which will allow for a dynamic callback every time a debugprint line is inserted, optionally further overriding these values in addition to the |
that's great, cheers! |
Hi, I've implemented this now - I think this should do what you were after. Please test it out and let me know how it works for you (it's on the main branch, not in a release yet). |
works great, thanks a lot! |
Great, thanks for confirming! |
Hi, great plugin.
I'd like to set
display_location
by file type. For example, it may be quite useful to have location displayed for lua files, but not so much for typescript files if you're using the browser where all logs already have a file location displayed by the browser's console.I'd suggest having
display_location
accept an optional function where we can leveragevim.bo.filetype
. Or accept display_location on thefiletypes
tables.The text was updated successfully, but these errors were encountered: