Refactoring source code #28
NTBBloodbath
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
hey, thanks for opening this discussion. I think it's a great idea to structure the plugin codebase and make it as simple as possible to add new features moving forward. I'll have a look to see if I can come up with some ideas and get back to you. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I made this discussion in order to discuss something that I have been thinking these last days since I have been unoccupied. It's about refactoring the source code of rest.nvim to make it easier to maintain in the future if the plugin grows more and to divide it so the code will be a lot more readable.
Basically, the main file would be containing only the rest.nvim core; handle rest.nvim buffer & window and the cURL request. Everything related to parsing the http files would go into a parser file that makes more sense and makes the code look cleaner in my opinion. It's also intended to make life easier for future rest.nvim contributors if there are any, I hope so.
Also btw @disrupted as you are the only contributor at the moment I wanted to know your opinion about it. Lemme know if you have some ideas to improve this so we can implement them too!
Beta Was this translation helpful? Give feedback.
All reactions