diff --git a/README.md b/README.md index a4fe9e7..5556042 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Unlike other completion sources, copilot can use other lines above or below an e ```lua local has_words_before = function() if vim.api.nvim_buf_get_option(0, "buftype") == "prompt" then return false end - local line, col = unpack(vim.api.nvim_win_get_cursor(0)) + local line, col = table.unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_text(0, line-1, 0, line-1, col, {})[1]:match("^%s*$") == nil end cmp.setup({