From 580e55105cc8121cff803790c63118370a129356 Mon Sep 17 00:00:00 2001 From: nilzen Date: Wed, 22 May 2024 15:54:38 +0200 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({