diff options
| author | Aotrix <[email protected]> | 2026-08-09 19:30:41 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-08-09 19:30:41 +0200 |
| commit | 8f7012e4b324ff27862f8caa26abceda8f383dd8 (patch) | |
| tree | a0f4dda61ecdfd2e68f4dee1e869639556f19563 /lua | |
| parent | d58313ecc3d2d28c3cf05f5d6849fee0287d19e4 (diff) | |
Fix command bug
Diffstat (limited to 'lua')
| -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) |
