try to fix snippets

This commit is contained in:
Barrett Ruth 2025-09-15 12:43:24 -04:00
parent 20b058f034
commit 35008bea32
4 changed files with 100 additions and 5 deletions

View file

@ -117,6 +117,7 @@ local function setup_problem(contest_id, problem_id, language)
vim.cmd.startinsert({ bang = true })
vim.schedule(function()
print("Debug: platform=" .. state.platform .. ", filetype=" .. vim.bo.filetype .. ", expandable=" .. tostring(luasnip.expandable()))
if luasnip.expandable() then
luasnip.expand()
end