orhnk / vimacs

Feature-full Neovim Experience - With Emacs, JetBrains features OOTB
GNU General Public License v3.0
324 stars 8 forks source link

Inline Code Generation Inspired From JetBrains #19

Open orhnk opened 11 months ago

orhnk commented 11 months ago

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:

https://github.com/UTFeight/vimacs/assets/101834410/8a15fc1f-f60d-4aea-95d4-be9e4fdf822b

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

image

orhnk commented 11 months ago

TODO: