Since the snippet starts with (line-beginning-position) the indentation is part of the snippet.
Since I use electric-indent-mode, I'm already indented to the right place whenever I make a new line, so calling aya-expand will just create the wrong indentation.
One solution would be to create a customized boolean which trims spaces from the snippets. Another approach would be to allow the users to customize the beginning of the line function so they can choose (mwim-beginning-of-line). I think I prefer the first solution and I could open a PR if this idea is accepted.
Since the snippet starts with
(line-beginning-position)
the indentation is part of the snippet.Since I use
electric-indent-mode
, I'm already indented to the right place whenever I make a new line, so callingaya-expand
will just create the wrong indentation.One solution would be to create a customized boolean which trims spaces from the snippets. Another approach would be to allow the users to customize the beginning of the line function so they can choose
(mwim-beginning-of-line)
. I think I prefer the first solution and I could open a PR if this idea is accepted.