summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/setup
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/setup')
-rw-r--r--.config/nvim/lua/setup/nvim-cmp.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/.config/nvim/lua/setup/nvim-cmp.lua b/.config/nvim/lua/setup/nvim-cmp.lua
index d3277d1..9e6ae05 100644
--- a/.config/nvim/lua/setup/nvim-cmp.lua
+++ b/.config/nvim/lua/setup/nvim-cmp.lua
@@ -1,6 +1,4 @@
-if not table.unpack then
- table.unpack = unpack
-end
+table.unpack = table.unpack or unpack -- 5.1 compatibility
local has_words_before = function()
local line, col = table.unpack(vim.api.nvim_win_get_cursor(0))