this repo has no description
1let g:projectionist_heuristics = {}
2
3let g:projectionist_heuristics['Cargo.toml'] = {
4 \ 'src/*.rs': {
5 \ 'type': 'src',
6 \ },
7 \ 'tests/*.rs': {
8 \ 'type': 'test',
9 \ },
10 \ 'benchmarks/*.rs': {
11 \ 'type': 'bench',
12 \ },
13 \ 'Cargo.toml': { 'type': 'config' },
14 \ }
15
16let g:projectionist_heuristics['mix.exs'] = {
17 \ 'apps/*/mix.exs': { 'type': 'app' },
18 \ 'lib/*.ex': {
19 \ 'type': 'lib',
20 \ 'alternate': 'test/{}_test.exs',
21 \ 'template': ['defmodule {camelcase|capitalize|dot} do', 'end'],
22 \ },
23 \ 'src/*.erl': {
24 \ 'type': 'src',
25 \ 'alternate': 'test/{}_SUITE.erl',
26 \ },
27 \ 'test/*_test.exs': {
28 \ 'type': 'test',
29 \ 'alternate': 'lib/{}.ex',
30 \ 'template': ['defmodule {camelcase|capitalize|dot}Test do', ' use ExUnit.Case, async: false', '', ' @subject {camelcase|capitalize|dot}', '', ' doctest @subject', 'end'],
31 \ },
32 \ 'mix.exs': { 'type': 'mix' },
33 \ 'config/*.exs': { 'type': 'config' },
34 \ '*.ex': {
35 \ 'makery': {
36 \ 'lint': { 'compiler': 'credo' },
37 \ 'test': { 'compiler': 'exunit' },
38 \ 'build': { 'compiler': 'mix' }
39 \ }
40 \ },
41 \ '*.exs': {
42 \ 'makery': {
43 \ 'lint': { 'compiler': 'credo' },
44 \ 'test': { 'compiler': 'exunit' },
45 \ 'build': { 'compiler': 'mix' }
46 \ }
47 \ }
48 \ }
49
50let g:projectionist_heuristics['rebar.config'] = {
51 \ '*.erl': {
52 \ 'template': ['-module({basename}).', '', '-export([]).', ''],
53 \ },
54 \ 'src/*.app.src': { 'type': 'app' },
55 \ 'src/*.erl': {
56 \ 'type': 'src',
57 \ 'alternate': 'test/{}_SUITE.erl',
58 \ },
59 \ 'test/*_SUITE.erl': {
60 \ 'type': 'test',
61 \ 'alternate': 'src/{}.erl',
62 \ 'template': ['-module({basename}_SUITE).', '',
63 \ '-compile(export_all).', '',
64 \ '-include_lib("stdlib/include/assert.hrl").',
65 \ '-include_lib("common_test/include/ct.hrl").', '',
66 \ 'all() -> [].'],
67 \ },
68 \ 'rebar.config': { 'type': 'rebar' }
69 \ }
70
71let g:projectionist_heuristics['package.json'] = {
72 \ '*.js': { 'make': 'yarn' },
73 \ 'package.json': { 'type': 'package' }
74 \ }