local heuristics = {
["composer.json"] = {
["src/*.php"] = {
type = "source",
alternate = "tests/{}Test.php",
},
["src/Controller/*.php"] = {
type = "controller",
["src/Model/*.php"] = {
type = "model",
["src/Service/*.php"] = {
type = "service",
["tests/*Test.php"] = {
type = "test",
alternate = "src/{}.php",
["fractal.config.js"] = {
["*.config.yml"] = {
alternate = "{dirname}/{basename}.twig",
["*.twig"] = {
alternate = "{dirname}/{basename}.config.yml",
["package.json"] = {
["src/*.ts"] = {
alternate = "tests/{}.test.ts",
["src/*.service.ts"] = {
["tests/*.test.ts"] = {
alternate = "src/{}.ts",
}
vim.g.projectionist_heuristics = heuristics
local nmap = require("opdavies.keymap").nmap
nmap { "<leader>aa", "<cmd>A<cr>" }