local auto = require 'std.auto' auto 'snippet_cleanup' { events = 'InsertLeave', command = function() if vim.snippet.active() then vim.snippet.stop() end end, }