Skip to content

Commit

Permalink
fix(nvim): accommodate Malomo naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarter committed Jun 17, 2022
1 parent 2b0d203 commit d49229e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions config/nvim/lua/plugins/projectionist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,19 @@ vim.g.projectionist_heuristics = {
['*.ts'] = {
alternate = {
'{dirname}/{basename}.test.ts',
'{dirname}/{basename}.test.tsx',
'{dirname}/{basename}.__tests__.ts',
'{dirname}/__tests__/{basename}.test.ts',
'{dirname}/__tests__/{basename}.test.tsx',
},
type = 'source',
},
['*.__tests__.ts'] = {
alternate = { '{dirname}/{basename}.ts', '{dirname}/../{basename}.ts' },
type = 'test',
},
['*.__tests__.tsx'] = {
alternate = { '{dirname}/{basename}.tsx', '{dirname}/../{basename}.tsx' },
type = 'test',
},
['*.test.ts'] = {
alternate = {
'{dirname}/{basename}.ts',
Expand All @@ -66,9 +73,8 @@ vim.g.projectionist_heuristics = {
},
['*.tsx'] = {
alternate = {
'{dirname}/{basename}.test.ts',
'{dirname}/{basename}.test.tsx',
'{dirname}/__tests__/{basename}.test.ts',
'{dirname}/{basename}.__tests__.tsx',
'{dirname}/__tests__/{basename}.test.tsx',
},
type = 'source',
Expand Down

0 comments on commit d49229e

Please sign in to comment.