nvim-lightbulb icon indicating copy to clipboard operation
nvim-lightbulb copied to clipboard

Block specific code actions

Open wstevick opened this issue 2 years ago • 1 comments

Can there be a way to block code actions that match a given pattern. My use case is that denols provides the action "Move to a new file" for all lines of a file. It would be very helpful to be able to say something like

{
    "ignore_actions": {
        "javascript": [
            "Move to a new file"
        ]
    }
}

Or whatever format.

wstevick avatar Nov 30 '23 23:11 wstevick

Using a filter function or predicate that takes lsp.CodeAction or lsp.Command lua table (and returns boolean whether to ignore or not) would be a much better and general solution.

I think this is a duplicate of #51.

wookayin avatar Dec 28 '23 08:12 wookayin