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.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/lua/setup/nvim-cmp.lua b/.config/nvim/lua/setup/nvim-cmp.lua
index 42bf348..584da73 100644
--- a/.config/nvim/lua/setup/nvim-cmp.lua
+++ b/.config/nvim/lua/setup/nvim-cmp.lua
@@ -1,6 +1,6 @@
local has_words_before = function()
- local line, col = 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
+ local line, col = 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
local luasnip = require("luasnip")