Files
neovim/runtime/lua/vim
Fredrik Ekre df09e03cf7 feat(lsp): options to filter and auto-apply code actions (#18221)
Implement two new options to vim.lsp.buf.code_action():
 - filter (function): predicate taking an Action as input, and returning
   a boolean.
 - apply (boolean): when set to true, and there is just one remaining
   action (after filtering), the action is applied without user query.

These options can, for example, be used to filter out, and automatically
apply, the action indicated by the server to be preferred:

    vim.lsp.buf.code_action({
        filter = function(action)
            return action.isPreferred
        end,
        apply = true,
    })

Fix #17514.
2022-04-30 10:14:31 +02:00
..
2018-12-20 11:57:30 +01:00
2021-11-27 11:10:48 -05:00
2022-04-21 16:23:10 +02:00
2022-03-24 12:01:04 -07:00
2022-04-15 12:35:06 +02:00