I found that yasnippet suggests using this code to limit it to only expand when the trigger text has just been typed:
(setq yas-expand-only-for-last-commands 'self-insert-command)
Unfortunately when I add it to my config, yasnippet no longer expands. My guess is that some other command is being run right after I insert text, and thus the
self-insert-command is not the most recent command. Yasnippet says it can take a list of different commands, so how can I check what commands follow a
self-insert-command (or just a list of all commands) to try to have yasnippet work with them?