diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2023-06-30 11:33:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-30 11:33:28 +0200 |
commit | 37079fca58f396fd866dc7b7d87a0100c17ee760 (patch) | |
tree | 876851052cf0eecbb5e05c4d7ad2abd5ee887e57 /test/functional | |
parent | d55d7646c129a9afe1da3a61813bb365d178c421 (diff) | |
download | rneovim-37079fca58f396fd866dc7b7d87a0100c17ee760.tar.gz rneovim-37079fca58f396fd866dc7b7d87a0100c17ee760.tar.bz2 rneovim-37079fca58f396fd866dc7b7d87a0100c17ee760.zip |
feat(lsp): move inlay_hint() to vim.lsp (#24130)
Allows to keep more functions hidden and gives a path forward for
further inlay_hint related functions - like applying textEdits.
See https://github.com/neovim/neovim/pull/23984#pullrequestreview-1486624668
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/plugin/lsp/inlay_hint_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/plugin/lsp/inlay_hint_spec.lua b/test/functional/plugin/lsp/inlay_hint_spec.lua index 574a4fa5a0..b19f2ba146 100644 --- a/test/functional/plugin/lsp/inlay_hint_spec.lua +++ b/test/functional/plugin/lsp/inlay_hint_spec.lua @@ -64,7 +64,7 @@ describe('inlay hints', function() end) it( - 'inlay hints are applied when vim.lsp.buf.inlay_hint(true) is called', + 'inlay hints are applied when vim.lsp.inlay_hint(true) is called', function() local res = exec_lua([[ bufnr = vim.api.nvim_get_current_buf() @@ -79,7 +79,7 @@ describe('inlay hints', function() insert(text) - exec_lua([[vim.lsp.buf.inlay_hint(bufnr, true)]]) + exec_lua([[vim.lsp.inlay_hint(bufnr, true)]]) screen:expect({ grid = [[ auto add(int a, int b)-> int { return a + b; } | @@ -96,7 +96,7 @@ describe('inlay hints', function() end) it( - 'inlay hints are cleared when vim.lsp.buf.inlay_hint(false) is called', + 'inlay hints are cleared when vim.lsp.inlay_hint(false) is called', function() exec_lua([[ bufnr = vim.api.nvim_get_current_buf() @@ -105,7 +105,7 @@ describe('inlay hints', function() ]]) insert(text) - exec_lua([[vim.lsp.buf.inlay_hint(bufnr, true)]]) + exec_lua([[vim.lsp.inlay_hint(bufnr, true)]]) screen:expect({ grid = [[ auto add(int a, int b)-> int { return a + b; } | @@ -119,7 +119,7 @@ describe('inlay hints', function() | ]] }) - exec_lua([[vim.lsp.buf.inlay_hint(bufnr, false)]]) + exec_lua([[vim.lsp.inlay_hint(bufnr, false)]]) screen:expect({ grid = [[ auto add(int a, int b) { return a + b; } | |