diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-04-18 07:57:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-18 07:57:58 -0700 |
commit | f1dfe32bf5552197e0068298b0527526a4f918b1 (patch) | |
tree | af5b20cf246d1025434f8ca9e01f2ce79d2b8847 /test/functional/plugin/lsp_spec.lua | |
parent | 97323d821be97deeb1a5797b4ca534156b9e9b0c (diff) | |
download | rneovim-f1dfe32bf5552197e0068298b0527526a4f918b1.tar.gz rneovim-f1dfe32bf5552197e0068298b0527526a4f918b1.tar.bz2 rneovim-f1dfe32bf5552197e0068298b0527526a4f918b1.zip |
feat(lua): enable(enable:boolean, filter:table) #28374
Problem:
We need to establish a pattern for `enable()`.
Solution:
- First `enable()` parameter is always `enable:boolean`.
- Update `vim.diagnostic.enable()`
- Update `vim.lsp.inlay_hint.enable()`.
- It was not released yet, so no deprecation is needed. But to help
HEAD users, it will show an informative error.
- vim.deprecate():
- Improve message when the "removal version" is a *current or older* version.
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 feca31c01b..5b90e6de6c 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -1328,7 +1328,7 @@ describe('LSP', function() on_handler = function(err, result, ctx) if ctx.method == 'start' then exec_lua [[ - vim.lsp.inlay_hint.enable(BUFFER) + vim.lsp.inlay_hint.enable(true, { bufnr = BUFFER }) ]] end if ctx.method == 'textDocument/inlayHint' then |