Last active
February 4, 2018 17:10
-
-
Save Clyybber/8861110a55f63ef1c255b26dbabfec1c to your computer and use it in GitHub Desktop.
Nim check support for Kakoune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Many thanks to SolitudeSF for testing and improving the snippet | |
#Script for making Nim(nim-lang.org) check work with Kakoune(kakoune.org) | |
hook global WinSetOption filetype=nim %{ | |
set buffer lintcmd "sh -c 'cp -f $0 $0.nim;nim --stdout --colors:off --hints:off --path:$(dirname ${kak_buffile}) check $0 | sed \"s/(/:/;s/, /:/;s/)/:/\" | sed \":a;N;/\n[buf.nim]/!s/\n//;ta;P;D\"'" | |
lint-enable | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Needs GNU sed (i think)