feat(nvim): configure alternate files for Fractal
Configure `*.twig` and `*.config.yml` as alternate files in Projectionist.
This commit is contained in:
parent
7c4f361f28
commit
265803b240
|
@ -1,4 +1,4 @@
|
||||||
vim.g.projectionist_heuristics = {
|
local heuristics = {
|
||||||
["composer.json"] = {
|
["composer.json"] = {
|
||||||
["src/*.php"] = {
|
["src/*.php"] = {
|
||||||
type = "source",
|
type = "source",
|
||||||
|
@ -23,6 +23,16 @@ vim.g.projectionist_heuristics = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
["fractal.config.js"] = {
|
||||||
|
["*.config.yml"] = {
|
||||||
|
alternate = "{dirname}/{basename}.twig",
|
||||||
|
},
|
||||||
|
|
||||||
|
["*.twig"] = {
|
||||||
|
alternate = "{dirname}/{basename}.config.yml",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
["package.json"] = {
|
["package.json"] = {
|
||||||
["src/*.ts"] = {
|
["src/*.ts"] = {
|
||||||
type = "source",
|
type = "source",
|
||||||
|
@ -40,3 +50,5 @@ vim.g.projectionist_heuristics = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vim.g.projectionist_heuristics = heuristics
|
||||||
|
|
Reference in a new issue