Skip to content
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

Inline Code Generation Inspired From JetBrains #19

Open
orhnk opened this issue Sep 28, 2023 · 1 comment
Open

Inline Code Generation Inspired From JetBrains #19

orhnk opened this issue Sep 28, 2023 · 1 comment

Comments

@orhnk
Copy link
Owner

orhnk commented Sep 28, 2023

One thing I miss in (neo)vim is these intellisense code actions that comes with CLion IntelliJ etc. out of the box.

Although there are some level of code refactoring/generation implemented with LSP, refactoring.nvim and some 3rd party plugins, they lack some functionality.

So, I have decided to implement some myself using a plugin called ts-node-action.nvim which allows you to inline treesitter to code easily.

The first (and probably the most important) action I implement is extract function.
Here is a quick demo:

tmp-2023-09-28_03.50.00.mp4

Thanks to the ts-node-action.nvim plugin, we can direct these plugins to null-ls API which eases the process:

image

@orhnk
Copy link
Owner Author

orhnk commented Sep 28, 2023

TODO:

  • Generate:
    • Contructor & Decontructor
    • Getter & Setter (from Class members)
    • Operators (Equality, Relational, Stream)
    • CopyRight (probably using snippets + info.lua)

orhnk added a commit that referenced this issue Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant