typescript support for kakoune
clone this repo (or simply copy the typescript.kak
file) and then
mv typescript.kak ~/.config/kak/autoload/typescript.kak
Open a .ts
file, and you are good to go
- handle tuples declarations (
[e1, e2]: [T1, T2]
) - handle higher order functions (last line of the screenshot)
I think there is a better way to detect arrow functions. If anyone is inspired, PR are welcomed ;)
This file is heavily inspired from the original javascript.kak
in the kakoune's repo