diff options
| author | LW <git@llllvvuu.dev> | 2023-11-12 04:54:27 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-12 04:54:27 -0800 |
| commit | 448907f65d6709fa234d8366053e33311a01bdb9 (patch) | |
| tree | 17dcb47f3f7481f7ded11e0675309461c7a15973 /test/functional/plugin/lsp_spec.lua | |
| parent | ad3568a70167ceb870931650afb7dcaed88640ec (diff) | |
| download | rneovim-448907f65d6709fa234d8366053e33311a01bdb9.tar.gz rneovim-448907f65d6709fa234d8366053e33311a01bdb9.tar.bz2 rneovim-448907f65d6709fa234d8366053e33311a01bdb9.zip | |
feat(lsp)!: vim.lsp.inlay_hint.get(), enable(), is_enabled() #25512
refactor!: `vim.lsp.inlay_hint()` -> `vim.lsp.inlay_hint.enable()`
Problem:
The LSP specification allows inlay hints to include tooltips, clickable
label parts, and code actions; but Neovim provides no API to query for
these.
Solution:
Add minimal viable extension point from which plugins can query for
inlay hints in a range, in order to build functionality on top of.
Possible Next Steps
---
- Add `virt_text_idx` field to `vim.fn.getmousepos()` return value, for
usage in mappings of `<LeftMouse>`, `<C-LeftMouse>`, etc
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
| -rw-r--r-- | test/functional/plugin/lsp_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua index d56e5b4afa..bb8d775838 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -1291,7 +1291,7 @@ describe('LSP', function() on_handler = function(err, result, ctx) if ctx.method == 'start' then exec_lua [[ - vim.lsp.inlay_hint(BUFFER, true) + vim.lsp.inlay_hint.enable(BUFFER) ]] end if ctx.method == 'textDocument/inlayHint' then |