Verified Commit 17206728 authored by gagbo's avatar gagbo

Add Rust projections

parent b74597df
let s:projections = {
\ 'src/*.rs': {
\ 'type': 'src',
\ },
\ 'tests/*.rs': {
\ 'type': 'test',
\ },
\ 'benchmarks/*.rs': {
\ 'type': 'bench',
\ },
\ 'Cargo.toml': { 'type': 'config' },
\ }
func! projections#rust#detect() abort
let l:root = projections#find_root(
\ g:projectionist_file,
\ {path -> filereadable(path . '/Cargo.toml')})
call projections#append(l:root, s:projections)
endfunc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment