Skip to content

Commit

Permalink
Fix keyword regex
Browse files Browse the repository at this point in the history
  • Loading branch information
deathbeam committed Jun 5, 2024
1 parent de54d5a commit 6bb9811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/autocomplete/buffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ local function text_changed(args)
return
end

local prefix, cmp_start = unpack(vim.fn.matchstrpos(line:sub(1, col), '\\k*$'))
local prefix, cmp_start = unpack(vim.fn.matchstrpos(line:sub(1, col), [[\k*$]]))

util.debounce(state.entries.completion, M.config.debounce_delay, function()
local client = util.get_client(args.buf, methods.textDocument_completion)
Expand Down

0 comments on commit 6bb9811

Please sign in to comment.