neovim/test/functional/plugin
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
..
lsp fix(lsp): fix unnecessary buffers being added on empty diagnostics (#18275) 2022-04-26 10:00:28 -07:00
health_spec.lua fix(healthcheck): handle empty reports 2022-02-09 10:18:22 +08:00
lsp_spec.lua feat(lsp): options to filter and auto-apply code actions (#18221) 2022-04-30 10:14:31 +02:00
man_spec.lua tests/ui: remove unnecessary screen:detach() 2019-10-13 22:10:42 +02:00
matchparen_spec.lua chore: fix typos (#17755) 2022-03-25 19:57:59 +01:00
msgpack_spec.lua test: Eliminate plugin/helpers.lua 2019-08-05 23:55:57 +02:00
shada_spec.lua feat(lua): add api and lua autocmds 2022-02-27 22:04:55 +01:00