Skip to content

Commit

Permalink
Merge pull request #44 from rktjmp/fix-demojify
Browse files Browse the repository at this point in the history
fix: include project root in package.path so requires work
  • Loading branch information
kdheepak committed Aug 12, 2023
2 parents 087cc1f + 135f2e2 commit 6a1326d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- add project root to lua package path so requires work when the cwd is not
-- the project root
package.path = PANDOC_STATE.user_data_dir .. "/../?.lua;" .. package.path
1 change: 1 addition & 0 deletions panvimdoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ ARGS=(
# Add an additional lua filter if demojify is true
if [[ ${DEMOJIFY:-false} == "true" ]]; then
ARGS+=(
"--data-dir=$SCRIPTS_DIR/../lib"
"--lua-filter=$SCRIPTS_DIR/remove-emojis.lua"
)
fi
Expand Down

0 comments on commit 6a1326d

Please sign in to comment.