mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
nvim/cmp: remove unused function
This commit is contained in:
parent
30305d8f59
commit
f901002774
1 changed files with 0 additions and 6 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue