🐛 fix(nvim): Fix dc snippet

This commit is contained in:
punkfairie 2024-02-27 20:58:28 -08:00
parent 97030b53e9
commit bf6d6349fb
Signed by: punkfairie
GPG key ID: A86AF57F837E320F
2 changed files with 4 additions and 1 deletions

View file

@ -3,6 +3,7 @@ local cmp = require("cmp")
return {
{
"L3MON4D3/LuaSnip",
keys = { { "<Tab>" } },
opts = {
store_selection_keys = "<Tab>",
},

View file

@ -9,7 +9,9 @@ M.fill = function(_, parent, args)
local chars = {}
if #parent.snippet.env.LS_SELECT_RAW > 0 then
title = print(parent.snippet.env.LS_SELECT_RAW) .. " "
for _, ele in ipairs(parent.snippet.env.LS_SELECT_RAW) do
title = title .. ele .. " "
end
end
for str in string.gmatch(args, "([^%%]+)") do