summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/setup/nvim-cmp.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/setup/nvim-cmp.lua')
-rw-r--r--.config/nvim/lua/setup/nvim-cmp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/lua/setup/nvim-cmp.lua b/.config/nvim/lua/setup/nvim-cmp.lua
index 83b54cd..5b62d61 100644
--- a/.config/nvim/lua/setup/nvim-cmp.lua
+++ b/.config/nvim/lua/setup/nvim-cmp.lua
@@ -1,5 +1,5 @@
local has_words_before = function()
- 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_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
end