aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/api.lua
diff options
context:
space:
mode:
authorYi Ming <ofseed@foxmail.com>2024-05-02 21:16:20 +0800
committerGitHub <noreply@github.com>2024-05-02 06:16:20 -0700
commitd5063f4b290e1c4262f7ced6d425ff2d7a2e2045 (patch)
tree823ace167610043482ff23da0fd8448688e19c1a /runtime/lua/vim/_meta/api.lua
parent2becec289c77a359087ab6322276811aea9e87c8 (diff)
downloadrneovim-d5063f4b290e1c4262f7ced6d425ff2d7a2e2045.tar.gz
rneovim-d5063f4b290e1c4262f7ced6d425ff2d7a2e2045.tar.bz2
rneovim-d5063f4b290e1c4262f7ced6d425ff2d7a2e2045.zip
feat(lsp): vim.lsp.inlay_hint.enable(nil) applies to all buffers #28543
Problem: Inlay hints `enable()` does not fully implement the `:help dev-lua` guidelines: Interface conventions ~ - When accepting a buffer id, etc., 0 means "current buffer", nil means "all buffers". Likewise for window id, tabpage id, etc. - Examples: |vim.lsp.codelens.clear()| |vim.diagnostic.enable()| Solution: Implement globally enabling inlay hints. * refactor(lsp): do not rely on `enable` to create autocmds * refactor(lsp): make `bufstates` a defaulttable * refactor(lsp): make `bufstate` inherit values from `globalstate` * feat(lsp): `vim.lsp.inlay_hints` now take effect on all buffers by default * test(lsp): add basic tests for enable inlay hints for all buffers * test(lsp): add test cases cover more than one buffer
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
0 files changed, 0 insertions, 0 deletions