nvim/cmp: remove unused function

This commit is contained in:
Primrose 2025-07-09 11:29:06 +02:00
parent 30305d8f59
commit f901002774
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -22,12 +22,6 @@ local types = require("luasnip.util.types")
local conds = require("luasnip.extras.conditions") local conds = require("luasnip.extras.conditions")
local conds_expand = require("luasnip.extras.conditions.expand") local conds_expand = require("luasnip.extras.conditions.expand")
local has_words_before = function()
unpack = unpack or table.unpack
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
luasnip.setup { update_events = { "TextChanged", "TextChangedI" } } luasnip.setup { update_events = { "TextChanged", "TextChangedI" } }
cmp.setup { cmp.setup {