neovim/runtime/lua/vim/lsp
Yi Ming d5063f4b29
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
2024-05-02 06:16:20 -07:00
..
_meta fix(lsp): add parentheses to generated union array types (#27560) 2024-02-21 12:31:56 +01:00
_changetracking.lua docs: improve/add documentation of Lua types 2024-03-01 23:02:18 +00:00
_completion.lua feat(lsp): support completion itemDefaults 2024-02-27 16:50:51 +01:00
_dynamic.lua refactor(types): more fixes (2) 2024-03-06 16:03:33 +00:00
_meta.lua fix(lsp): clean up duplicate and unused meta type annotations 2024-01-20 14:02:16 +01:00
_snippet_grammar.lua feat(lsp): add snippet API (#25301) 2023-10-21 08:51:26 +02:00
_tagfunc.lua fix(lsp): fix infinite loop on vim.lsp.tagfunc 2024-02-03 17:47:56 -05:00
_watchfiles.lua feat(lsp): add fswatch watchfunc backend 2024-03-01 23:00:20 +00:00
buf.lua refactor(lsp): merge subtypes and supertypes into typehierarchy (#28467) 2024-04-23 19:05:01 +02:00
client.lua fix(lsp): add "silent" option to vim.lsp.start (#28478) 2024-04-26 08:15:44 -05:00
codelens.lua fix(lsp): prevent code-lens refresh from becoming a permanent no-op (#28228) 2024-04-10 12:27:37 +02:00
diagnostic.lua fix(lsp): actually send diagnostic-tags back to the server 2024-03-06 11:12:41 +00:00
handlers.lua fix(vim.ui)!: change open() to return pcall-like values #28502 2024-04-25 04:15:58 -07:00
health.lua feat(lsp): add fswatch watchfunc backend 2024-03-01 23:00:20 +00:00
inlay_hint.lua feat(lsp): vim.lsp.inlay_hint.enable(nil) applies to all buffers #28543 2024-05-02 06:16:20 -07:00
log.lua feat(lua): deprecate vim.tbl_add_reverse_lookup 2024-03-07 10:24:34 +01:00
protocol.lua feat(lua): deprecate vim.tbl_add_reverse_lookup 2024-03-07 10:24:34 +01:00
rpc.lua fix(lsp): add "silent" option to vim.lsp.start (#28478) 2024-04-26 08:15:44 -05:00
semantic_tokens.lua docs(lua): improvements for LSP and Diagnostic 2024-03-05 13:36:46 +00:00
sync.lua feat(docs): replace lua2dox.lua 2024-02-27 14:41:17 +00:00
util.lua docs: small fixes (#27364) 2024-03-12 13:51:53 +08:00