nvim-treesitter-context icon indicating copy to clipboard operation
nvim-treesitter-context copied to clipboard

Dockerfile build stage

Open phistep opened this issue 1 year ago • 2 comments

Treesitter supports Dockerfile (:TSInstall dockerfile), and it would be nice to have the current build stage FROM ... AS ... as the floating context. I tried adding 'from' or 'FROM' to setup.patterns.default (should probably go into setup.patterns.dockerfile), but it didn't work.

I don't know how to find the name of a node, so it might be helpful to add this to the readme next to the "open a PR" comment.

phistep avatar Jul 12 '22 12:07 phistep

Another thing that I would like is goals/targets in Makefiles. I'm not going to open another issue for that rn, if you can help me find names of nodes, I'll just add PRs directly.

phistep avatar Jul 13 '22 12:07 phistep

You can use https://github.com/nvim-treesitter/playground to find the node names.

romgrk avatar Jul 31 '22 04:07 romgrk

Supported languages are now tracked in the README.

I've also added CONTRIBUTING.md which provides instructions on how to add support for a new language.

lewis6991 avatar May 11 '23 09:05 lewis6991