Closed ewels closed 8 years ago
Nice! I'm bit confused with the first tip. It does not break the nextflow script if you put that at the top of the file?
Sorry, just near the top of the file. eg: https://github.com/SciLifeLab/NGI-RNAseq/blob/master/main.nf#L3-L4
I take it back - they can go anywhere in the file. See https://github.com/github/linguist#using-emacs-or-vim-modelines
Cool! So in a comment like this:
/*
vim: syntax=groovy
-*- mode: groovy;-*-
*/
Exactly, yup 👍
You can get GitHub to play nicely with the NextFlow scripts file extensions with these two tricks:
Add the following to the top of every
.nf
script: (does syntax highlighting)Create a file called
.gitattributes
with the following: (changes the coloured bar at the top of the repo to say 100% Groovy instead of 100% Shell.Hope this helps! It was annoying me on our NextFlow repos 😉