diff options
Diffstat (limited to 'lua/aotrix')
| -rw-r--r-- | lua/aotrix/plugins/build.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/aotrix/plugins/build.lua b/lua/aotrix/plugins/build.lua index a0a642c..86fc9a7 100644 --- a/lua/aotrix/plugins/build.lua +++ b/lua/aotrix/plugins/build.lua @@ -215,7 +215,8 @@ return { local current_path = vim.fn.getcwd() if current_json ~= nil then for existing_directory, _ in pairs(current_json) do - if (string.find(current_path, existing_directory) == 1) then + if (current_path == existing_directory or + string.find(current_path, existing_directory) == 1) then appendCommandsFromFile(COMMANDS, PERSONAL_COMMAND_JSON_PATH, existing_directory) |
