Add clojure projectionist config

main
Ensar Sarajčić 2022-07-18 16:12:36 +02:00
parent dfc26b5056
commit b3dd90d6dc
1 changed files with 44 additions and 0 deletions

View File

@ -540,6 +540,49 @@ local lein_config = {
},
}
local clojure_config = {
["*"] = {
dispatch = "clj -M:test",
console = "clj -M:dev",
},
["src/clj/*.clj"] = {
type = "source",
alternate = {
"test/clj/{}_test.clj",
},
},
["src/clj/*.cljs"] = {
type = "source",
alternate = {
"test/clj/{}_test.cljs",
},
},
["src/clj/*.cljc"] = {
type = "source",
alternate = {
"test/clj/{}_test.cljc",
},
},
["test/clj/*_test.clj"] = {
type = "test",
alternate = {
"src/clj/{}.clj",
},
},
["test/clj/*_test.cljs"] = {
type = "test",
alternate = {
"src/clj/{}.cljs",
},
},
["test/clj/*_test.cljc"] = {
type = "test",
alternate = {
"src/clj/{}.cljc",
},
},
}
vim.g.projectionist_heuristics = {
["pubspec.yaml"] = flutter_config,
["requirements.txt|pyproject.toml"] = python_config,
@ -556,4 +599,5 @@ vim.g.projectionist_heuristics = {
["Cargo.toml"] = rust_config,
["build.zig"] = zig_config,
["project.clj"] = lein_config,
["deps.edn"] = clojure_config,
}