mirror of
https://github.com/neovim/neovim.git
synced 2025-11-10 12:35:29 +00:00
test: add docs for get_completion_word test
This commit is contained in:
@@ -812,11 +812,12 @@ describe('LSP', function()
|
|||||||
}, buf_lines(1))
|
}, buf_lines(1))
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end)
|
|
||||||
|
|
||||||
describe('LSP', function()
|
|
||||||
describe('completion_list_to_complete_items', function()
|
describe('completion_list_to_complete_items', function()
|
||||||
it('should choose right completion option ', function ()
|
-- Completion option precedence:
|
||||||
|
-- textEdit.newText > insertText > label
|
||||||
|
-- https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_completion
|
||||||
|
it('should choose right completion option', function ()
|
||||||
local prefix = 'foo'
|
local prefix = 'foo'
|
||||||
local completion_list = {
|
local completion_list = {
|
||||||
-- resolves into label
|
-- resolves into label
|
||||||
|
|||||||
Reference in New Issue
Block a user