🐛 fix(nvim): Fix dc snippet
This commit is contained in:
parent
97030b53e9
commit
bf6d6349fb
2 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,7 @@ local cmp = require("cmp")
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
|
keys = { { "<Tab>" } },
|
||||||
opts = {
|
opts = {
|
||||||
store_selection_keys = "<Tab>",
|
store_selection_keys = "<Tab>",
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,9 @@ M.fill = function(_, parent, args)
|
||||||
local chars = {}
|
local chars = {}
|
||||||
|
|
||||||
if #parent.snippet.env.LS_SELECT_RAW > 0 then
|
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
|
end
|
||||||
|
|
||||||
for str in string.gmatch(args, "([^%%]+)") do
|
for str in string.gmatch(args, "([^%%]+)") do
|
||||||
|
|
Loading…
Reference in a new issue