Greg Hurrell video: https://www.youtube.com/watch?v=3jDafvUESbs This allows me to jump between c source, header and test files easily. It is capable of a lot more than this but I haven't looked into it too much yet.
parent
aa9e27ea22
commit
e9b6c36278
4 changed files with 30 additions and 0 deletions
@ -0,0 +1 @@ |
||||
Subproject commit ddfa49f9ece73aca44d2b45d693e7b58adbf8f8c |
@ -0,0 +1,25 @@ |
||||
let g:projectionist_heuristics = { |
||||
\'*': { |
||||
\ 'src/*.c': { |
||||
\ 'alternate': [ |
||||
\ 'src/{}.h', |
||||
\ 'tests/{}.test.c' |
||||
\ ], |
||||
\ 'type': 'source' |
||||
\ }, |
||||
\ 'src/*.h': { |
||||
\ 'alternate': [ |
||||
\ 'tests/{}.test.c', |
||||
\ 'src/{}.c' |
||||
\ ], |
||||
\ 'type': 'header' |
||||
\ }, |
||||
\ 'tests/*.test.c': { |
||||
\ 'alternate': [ |
||||
\ 'src/{}.c', |
||||
\ 'src/{}.h', |
||||
\ ], |
||||
\ 'type': 'test' |
||||
\ }, |
||||
\ } |
||||
\} |
Loading…
Reference in new issue