ThePrimeagen / refactoring.nvim

The Refactoring library based off the Refactoring book by Martin Fowler
MIT License
2.67k stars 80 forks source link

Refactorings for c# #342

Open SaschaDoe opened 1 year ago

SaschaDoe commented 1 year ago

Hey, it World be nice to have Code refactorings for c# too.

Tantol commented 1 year ago

Man can we have some coconut oil for c# blazingly fast coding?

joviol commented 4 weeks ago

Any ETA for C# support?

TheLeoP commented 4 weeks ago

There isn't an ETA right now. PRs are welcomed and I'm happy to guide anyone on how to add support to it, though

vijairamg commented 2 days ago

@TheLeoP Hi, I'm interested in getting it working for c#. What are the high level steps to implement it?

TheLeoP commented 2 days ago

@vijairamg

You can use the lua (or any other language) support as a guide:

https://github.com/ThePrimeagen/refactoring.nvim/blob/d07218748c48e756c27aa6859bfa6e62a3d271af/lua/refactoring/treesitter/langs/lua.lua

https://github.com/ThePrimeagen/refactoring.nvim/blob/d07218748c48e756c27aa6859bfa6e62a3d271af/lua/refactoring/code_generation/langs/lua.lua

Have you used treesitter before? If no, you'll need to read its documentation to understand its query syntax.

vijairamg commented 2 days ago

Thanks for the pointers.

I don't know much about tree sitter (other than InspectTree).

TheLeoP commented 2 days ago

@vijairamg let me know if you want some help c: