aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2022-07-28 19:19:07 +0200
committerGitHub <noreply@github.com>2022-07-28 19:19:07 +0200
commit98915f88b2d4b0e7f2ca643cd4648316ec9cddb8 (patch)
tree4df0fc59aa18fc22addb63b0199e15cebe35b360 /src/nvim/diff.c
parent468b1a689a40e7eb8ee78c0d1926d149148ed951 (diff)
downloadrneovim-98915f88b2d4b0e7f2ca643cd4648316ec9cddb8.tar.gz
rneovim-98915f88b2d4b0e7f2ca643cd4648316ec9cddb8.tar.bz2
rneovim-98915f88b2d4b0e7f2ca643cd4648316ec9cddb8.zip
feat(lsp): add range option to code_action; deprecate range_code_action (#19551)
`code_action` gained extra functions (`filter` and `apply`) which `range_code_action` didn't have. To close this gap, this adds a `range` option to `code_action` and deprecates `range_code_action`. The option defaults to the current selection if in visual mode. This allows users to setup a mapping like `vim.keymap.set({'v', 'n'}, '<a-CR>', vim.lsp.buf.code_action)` `range_code_action` used to use the `<` and `>` markers to get the _last_ selection which required using a `<Esc><Cmd>lua vim.lsp.buf.range_code_action()<CR>` (note the `<ESC>`) mapping.
Diffstat (limited to 'src/nvim/diff.c')
0 files changed, 0 insertions, 0 deletions