aboutsummaryrefslogtreecommitdiff
path: root/scripts/lintcommit.lua
diff options
context:
space:
mode:
authorYi Ming <ofseed@foxmail.com>2026-04-10 01:46:50 +0800
committerGitHub <noreply@github.com>2026-04-09 13:46:50 -0400
commitf9e068117be9c6ca05d3e42530895449cbdc2a17 (patch)
treec023852055e3f5d17ac105bf7e234cec55973775 /scripts/lintcommit.lua
parent24811c0a1410703d78e77c6a3233ff85f87964ef (diff)
downloadrneovim-f9e068117be9c6ca05d3e42530895449cbdc2a17.tar.gz
rneovim-f9e068117be9c6ca05d3e42530895449cbdc2a17.tar.bz2
rneovim-f9e068117be9c6ca05d3e42530895449cbdc2a17.zip
refactor(lsp): share code by `get_locations` #38902
Problem: `vim.lsp.buf.definition`/`vim.lsp.buf.declaration` use the same underlying code via `get_locations`, whereas `vim.lsp.buf.reference` does not. This is because `buf.reference` does not perform a jump when there is only one item. Solution: In #38510, I simplified the jump logic using `:cfirst`, so they can now share code more easily. Additionally, this PR enables `buf.definition` to display the corresponding qflist name.
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions