stevearc / aerial.nvim

Neovim plugin for a code outline window
MIT License
1.69k stars 83 forks source link

Add basic support for navigating zig files. #359

Closed g-cassie closed 5 months ago

g-cassie commented 5 months ago

This is very basic level support but it's enough for me personally to get value out of this plugin while doing zig development.

I tried to have it differentiate between methods and functions but it would end up dropping structs which contain methods.

g-cassie commented 5 months ago

I've found a couple rough edges on this. Will continue to work on ironing it out but let me know if you are okay with merging it eventually.

stevearc commented 5 months ago

I'd definitely be up for merging! Just add a test file to https://github.com/stevearc/aerial.nvim/tree/master/tests/treesitter with at least one instance of each symbol type that is supported and run make update_snapshots to generate the symbol snapshot.

g-cassie commented 5 months ago

Thanks - test added. Pretty nice testing setup!

stevearc commented 5 months ago

Awesome, looks great! The test failure looks unrelated; I just need to adapt to something that changed upstream. Thanks for the contribution!