mirror of
https://github.com/neovim/neovim.git
synced 2025-11-10 04:25:22 +00:00
test: add docs for get_completion_word test
This commit is contained in:
@@ -812,10 +812,11 @@ 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()
|
||||||
|
-- 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 ()
|
it('should choose right completion option', function ()
|
||||||
local prefix = 'foo'
|
local prefix = 'foo'
|
||||||
local completion_list = {
|
local completion_list = {
|
||||||
|
|||||||
Reference in New Issue
Block a user