nvim-lightbulb
nvim-lightbulb copied to clipboard
Block specific code actions
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.
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.