Replies: 1 comment 5 replies
-
I manually concat static_text in LuaSnip/lua/luasnip/nodes/node.lua Line 65 in a7a4b46 using this function local function put(lines, text, pos)
local lineIndex = pos[1]
local colIndex = pos[2] + 1
for i, txt in ipairs(text) do
if lines[lineIndex] then
lines[lineIndex] = lines[lineIndex] .. txt
else
lines[lineIndex] = txt
end
if i < #text then
lineIndex = lineIndex + 1
colIndex = 1
else
colIndex = colIndex + #txt
end
end
end
can achieve hrsh7th/nvim-cmp#1862 (comment) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Say I choose
local
in nvim cmp, after expansion, it will inserthow do I get the raw text so that I can make ghost text display
function()
instead offunction$1($2)
, I want to change their implementation to expand earlyBeta Was this translation helpful? Give feedback.
All reactions