-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
792 additions
and
1,167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13474,6 +13474,12 @@ | |
githubId = 1709273; | ||
name = "Robin Hack"; | ||
}; | ||
marnym = { | ||
email = "[email protected]"; | ||
github = "marnym"; | ||
githubId = 56825922; | ||
name = "Markus Nyman"; | ||
}; | ||
marsupialgutz = { | ||
email = "[email protected]"; | ||
github = "pupbrained"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
pkgs/applications/editors/neovim/to-nvim-treesitter-grammar.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
echo "Sourcing to-nvim-treesitter-grammar.sh" | ||
|
||
toNvimTreesitterGrammar() { | ||
echo "Executing toNvimTreesitterGrammar" | ||
|
||
mkdir -p "$out/parser" | ||
ln -s "$origGrammar/parser" "$out/parser/$grammarName.so" | ||
|
||
if [ "$installQueries" != 1 ]; then | ||
echo "Installing queries is disabled: installQueries=$installQueries" | ||
return | ||
fi | ||
|
||
echo "Installing queries for $grammarName" | ||
|
||
mkdir -p "$out/queries/$grammarName" | ||
if [ -d "$origGrammar/queries/$grammarName" ]; then | ||
echo "Moving queries from neovim queries dir" | ||
for file in "$origGrammar/queries/$grammarName/"*; do | ||
ln -s "$file" "$out/queries/$grammarName/$(basename "$file")" | ||
done | ||
else | ||
if [ -d "$origGrammar/queries" ]; then | ||
echo "Moving queries from standard queries dir" | ||
|
||
for file in "$origGrammar/queries/"*; do | ||
ln -s "$file" "$out/queries/$grammarName/$(basename "$file")" | ||
done | ||
else | ||
echo "Missing queries for $grammarName" | ||
fi | ||
fi | ||
} | ||
|
||
echo "Using toNvimTreesitterGrammar" | ||
preDistPhases+=" toNvimTreesitterGrammar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.