We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2ee219 commit 8d15d97Copy full SHA for 8d15d97
scripts/filetypes.sh
@@ -1,6 +1,11 @@
1
#!/usr/bin/env bash
2
3
# 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
9
10
in_section=false
11
@@ -18,7 +23,7 @@ while IFS= read -r line; do
18
23
if [ -n "$line" ]; then
19
24
continue
20
25
else
21
- [ -f "/usr/share/nvim/runtime/syntax/$key.vim" ] &&
26
+ [ -f "${VIMRUNTIME}/syntax/$key.vim" ] &&
22
27
echo -e "\e[33mPlease add \"$key\" to filetypes Lua table.\e[0m"
28
fi
29
0 commit comments