mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +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))
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('LSP', 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 completion_list = {
|
||||
-- resolves into label
|
||||
|
||||
Reference in New Issue
Block a user