Use `${0:A:h}` to get the absolute plugin directory path before entering the anonymous function, where `$0` refers to the function itself. Store it in a local variable to ensure the completion file path is resolved correctly. Fixes #14003