summaryrefslogtreecommitdiff
path: root/rc/filetype/elixir.kak
AgeCommit message (Collapse)Author
2024-06-19elixir: detect heex additionaly to leexWillow Barraco
2022-07-05Make `x` just select the full linesMaxime Coste
`x` is often criticized as hard to predict due to its slightly complex behaviour of selecting next line if the current one is fully selected. Change `x` to use the previous `<a-x>` behaviour, and change `<a-x>` to trim to fully selected lines as `<a-X>` did. Adapt existing indentation script to the new behaviour
2022-05-26rc filetype: fix double space in trim-indent hooksJohannes Altmanninger
2021-12-02update sigil highlighter to be less error proneParasrah
2021-06-06Rename exec->execute-keys for consistencyDmitry Matveyev
2021-06-06Better comment inserting tests and fix implementationDmitry Matveyev
2021-06-06Fix elixir copying comment # signDmitry Matveyev
Elixir uses # for comments, not --. Implementation is copied from Nim.
2021-06-06Add auto-inserting of "end" keyword to ElixirDmitry Matveyev
fixup! Add auto-inserting of "end" keyword to Elixir
2021-04-17rc: use a separate *-insert hook to auto-insert commentsJohannes Altmanninger
This should cover all filetypes that already auto-insert comments, except for rust.kak, which is left for a follow-up. Most of these are straightforward, some explanation for special cases: rc/filetype/zig.kak rc/filetype/cue.kak These indent hooks used their own logic to indent after "{" only if no comment was inserted. Replace this logic by checking if a comment was inserted. This works because these "*-insert" hooks are run before their respective "*-indent" hooks. rc/filetype/php.kak This also has some logic to insert "*" after "/*" lines. Basic usage seems to work still. In future this should borrow from the c-family one, which works a bit better.
2021-04-17rc: remove spurious tabsJohannes Altmanninger
This makes it easier to be consistent. Also replace "<<-EOF" by "<<EOF", since the former only does trims tabs, not spaces.
2020-08-23Avoid extra indent when line does not end on keywordJohannes Altmanninger
For example there was an indent after a line like "echo todo" with filetype sh because the "do" in "todo" was recognised as keyword.
2020-08-12fix #3651Parasrah
Similar to Jinja, getting `eex` highlighting in *.ex files will require users to setup a filetype hook similar to the following: hook global WinSetOption filetype=elixir %{ require-module eex add-highlighter window/eex ref eex } This is done both to fix a circular dependency between the `elixir` and `eex` modules, and avoid polluting `elixir` files with false positives from `eex` highlighting given `eex` is framework specific
2020-05-03Elixir: add support for Eex comments and quotationNoé Rubinstein
2020-05-03Elixir: add support for <% in addition to <%=Noé Rubinstein
2020-05-03Elixir: Fix triple-string, add support for EexNoé Rubinstein
This adds support for the Eex templating that is used in the Phoenix web framework. Eex files include HTML and Elixir code, and Elixir files can include Eex in string literals marked with the `~L` prefix. Additionally this unbreaks `"""` string literals, which did not work because `"` was matched before `"""`
2019-10-22src: Create a <semicolon> named keyFrank LENORMAND
This commit allows using the <semicolon> expansion in commands, instead of `\;`. It makes commands look more elegant, and prevents new-comers from falling into the trap of using <a-;> without escaping the semicolon.
2019-10-16Replace ModeChange hooks by ModePush and ModePopMaxime Coste
Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd hooks. Closes #2545
2019-04-09Fixed many of the filetype support modules to not use `BufSetOption` to loadJustin Frank
2019-04-08Added modules to extra filesJustin Frank
2019-03-21Add categories in rc/Alex Leferry 2
Closes #2783