Skip to content

Inline Code Generation Inspired From JetBrains #19

@orhnk

Description

@orhnk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions