Skip to content

Commit 8d15d97

Browse files
committed
fixup! chore: add script to Makefile to check for missing filetypes
1 parent c2ee219 commit 8d15d97

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/filetypes.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

33
# Iterate over the elements of icons_by_file_extension and check if there are missed filetypes.
4+
# $VIMRUNTIME specifies neovim runtime path, defaults to "/usr/share/nvim/runtime" if unset.
5+
6+
if [ -z "${VIMRUNTIME}" ]; then
7+
export VIMRUNTIME="/usr/share/nvim/runtime"
8+
fi
49

510
in_section=false
611

@@ -18,7 +23,7 @@ while IFS= read -r line; do
1823
if [ -n "$line" ]; then
1924
continue
2025
else
21-
[ -f "/usr/share/nvim/runtime/syntax/$key.vim" ] &&
26+
[ -f "${VIMRUNTIME}/syntax/$key.vim" ] &&
2227
echo -e "\e[33mPlease add \"$key\" to filetypes Lua table.\e[0m"
2328
fi
2429
fi

0 commit comments

Comments
 (0)