From 83e64d1950a361c25f6010800860ad371335d386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Sat, 7 May 2022 16:17:19 +0200 Subject: [PATCH] Fix projectionist heuristics for lua vim plugins --- symlinks/config/nvim/plugin/projectionist.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/symlinks/config/nvim/plugin/projectionist.lua b/symlinks/config/nvim/plugin/projectionist.lua index 0dbcebd..5fff50b 100644 --- a/symlinks/config/nvim/plugin/projectionist.lua +++ b/symlinks/config/nvim/plugin/projectionist.lua @@ -272,9 +272,13 @@ local lua_vim_plugin_config = { }, ["lua/*.lua"] = { type = "source", - alternate = "test/{}.lua", + alternate = "tests/{}.lua", + template = { + 'describe("{}:", function()', + "end)", + }, }, - ["test/*.lua"] = { + ["tests/*.lua"] = { type = "test", alternate = "lua/{}.lua", },