From 119127accf284ca1c3163226e070ba3412629993 Mon Sep 17 00:00:00 2001 From: Squibid Date: Mon, 5 Feb 2024 22:30:55 -0500 Subject: un-object orient some functions --- after/plugin/cmp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'after/plugin/cmp.lua') diff --git a/after/plugin/cmp.lua b/after/plugin/cmp.lua index 7106aae..71cc254 100644 --- a/after/plugin/cmp.lua +++ b/after/plugin/cmp.lua @@ -3,7 +3,7 @@ if not status_ok then return end -local has_words_before = function() +local function has_words_before() unpack = unpack or table.unpack local line, col = unpack(a.nvim_win_get_cursor(0)) return col ~= 0 and a.nvim_buf_get_lines(0, line - 1, line, true) -- cgit v1.2.1