calops / hmts.nvim Goto Github PK
View Code? Open in Web Editor NEWCustom treesitter queries for Home Manager nix files, in Neovim
License: MIT License
Custom treesitter queries for Home Manager nix files, in Neovim
License: MIT License
In the injections file (https://github.com/calops/hmts.nvim/blob/main/queries/nix/injections.scm) I see that programs.fish.shellInit
, programs.fish.function
etc. are specified, but they still don't work for me without explicit annotations:
Plugin installed, but no annotations | with explicit annotations |
---|---|
![]() |
![]() |
For example, to get Fish highlighting, this works:
programs.fish = {
functions = {
my-function = ''
echo "some shell script"
'';
};
};
# this structure also works
programs.fish.functions = {
my-function = ''
echo "some shell script"
'';
};
However this does not work:
programs.fish = {
functions.my-function = ''
echo "some shell script"
'';
};
Follow-up to #9
Find a way to support arbitrarily complex ways to write shebangs. For example, this doesn't work: !#${pkgs.bash}/bin/bash
. This is because the nix variable in the middle makes the shebang span multiple nodes (three in this case) instead of just one string_fragment
.
Maybe perform the matching on the parent node?
Was spending some time trying to figure out why my NixVim installation was running slower, enabling and disabling just about everything until looking at this plugin. Nothing else makes a difference besides just completely disabling TS. I'm not sure if this is typical / to be expected, but just thought I should leave an issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.