summaryrefslogtreecommitdiff
path: root/rc/filetype/fsharp.kak
AgeCommit message (Collapse)Author
2022-07-05Move user mappings to <space> and keep/remove selection to ,Maxime Coste
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-29rc filetype: add trim-indent hooks to all languages that have indent hooksJohannes Altmanninger
An indent hook automatically adds whitespace, so it seems prudent to add the hook to remove unwanted whitespace again. This is what we do in most languages already.
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.
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.
2019-11-11Fix literal '"' in fsharp highlighting.pema99
2019-11-08Add syntax highlighting for F#Nikolaj Hey Hinnerskov
Co-authored-by: pema99 <pemamalling@gmail.com>