mirror of
https://github.com/neovim/neovim.git
synced 2024-12-28 14:31:13 -07:00
d5063f4b29
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 |
||
---|---|---|
.. | ||
_meta | ||
_changetracking.lua | ||
_completion.lua | ||
_dynamic.lua | ||
_meta.lua | ||
_snippet_grammar.lua | ||
_tagfunc.lua | ||
_watchfiles.lua | ||
buf.lua | ||
client.lua | ||
codelens.lua | ||
diagnostic.lua | ||
handlers.lua | ||
health.lua | ||
inlay_hint.lua | ||
log.lua | ||
protocol.lua | ||
rpc.lua | ||
semantic_tokens.lua | ||
sync.lua | ||
util.lua |