nvim-chainsaw icon indicating copy to clipboard operation
nvim-chainsaw copied to clipboard

Feature Request: Inbuilt support for C/C++ & Java

Open 231tr0n opened this issue 1 year ago • 4 comments

Feature Requested

Hi chrisgrieser! Thank you for developing and maintaining this wonderful and compact plugin. Is it possible to add inbuilt support for the following languages as well to this plugin.

  • C/C++
  • Java
  • Go

Relevant Screenshot

No response

Checklist

  • [X] The feature would be useful to more users than just me.

231tr0n avatar Nov 23 '24 17:11 231tr0n

Is it possible to add inbuilt support for the following languages as well to this plugin.

Yes, it is, but since I have no experience in those languages, someone else will have to make a PR for that.

If you code in those languages, it shouldn't be hard to add. Only needs adding the correct template string to the table in this file: https://github.com/chrisgrieser/nvim-chainsaw/blob/main/lua/chainsaw/log-statements-data.lua

chrisgrieser avatar Nov 23 '24 17:11 chrisgrieser

FYI - debugprint has support for these. You are welcome to adapt the configuration from here into nvim-chainsaw if it's helpful.

andrewferrier avatar Dec 10 '24 16:12 andrewferrier

@andrewferrier Thanks for the offer! However, I am quite hesitant to write log statements for languages I am not familiar with myself, since it's easy to make mistakes then.

And since the config from debugprint is structured very differently from how chainsaw structures them, I am not even sure if I could properly translate a c++ log statement correctly from debugprint's to chainsaw's format.

I think it would really be better if some who actually knows those languages made a PR to chainsaw 😅

chrisgrieser avatar Dec 10 '24 23:12 chrisgrieser

Fair enough, thought I'd offer :) I know debugprint is MIT licensed so it's not like technically you need my permission, but best to be open anyway. I'll leave this with you then...

andrewferrier avatar Dec 10 '24 23:12 andrewferrier

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, for example "bump", and it will be kept open.

github-actions[bot] avatar Jun 11 '25 04:06 github-actions[bot]

This issue has been closed due to inactivity, and will not be monitored.

github-actions[bot] avatar Jun 18 '25 04:06 github-actions[bot]

bump!

Would love to see this happening!

itse4elhaam avatar Jun 21 '25 11:06 itse4elhaam