This repository was archived by the owner on Oct 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 18
18
local function get_completion_word (item )
19
19
if item .insertText ~= nil and item .insertText ~= vim .NIL then
20
20
return item .insertText
21
- elseif item .textEdit ~= nil and item .textEdit ~= vim .NIL and item .textEdit .newText ~= nil and item .insertTextFormat ~= 2 then
21
+ elseif item .textEdit ~= nil and item .textEdit ~= vim .NIL
22
+ and item .textEdit .newText ~= nil and item .insertTextFormat ~= 2 then
22
23
return item .textEdit .newText
23
24
end
24
25
return item .label
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ M.triggerFunction = function()
61
61
local line = api .nvim_get_current_line ()
62
62
local line_to_cursor = line :sub (1 , pos [2 ])
63
63
local keyword
64
- if vim .v .completed_item ~= nil and vim .v .completed_item .kind == ' Path' and line_to_cursor :find (vim .v .completed_item .word ) then
64
+ if vim .v .completed_item ~= nil and vim .v .completed_item .kind == ' Path' and
65
+ line_to_cursor :find (vim .v .completed_item .word ) then
65
66
keyword = M .keyword .. vim .v .completed_item .word .. ' /'
66
67
else
67
68
M .keyword = nil
You can’t perform that action at this time.
0 commit comments