mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
df09e03cf7
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. |
||
---|---|---|
.. | ||
lsp | ||
health_spec.lua | ||
lsp_spec.lua | ||
man_spec.lua | ||
matchparen_spec.lua | ||
msgpack_spec.lua | ||
shada_spec.lua |