summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/setup/nvim-cmp.lua
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-05-03 12:49:59 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-05-03 12:49:59 +0200
commita73737868a85609ba0e1ebbbcd33096ffbacd8c0 (patch)
treea7318266cd490df5b9a39e824da1baf932496507 /.config/nvim/lua/setup/nvim-cmp.lua
parent280b092727fc3a0bb8a1735b53a517071dd475c6 (diff)
nvim: disable global status, formatting
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