Fzf picker listing document symbols based on tree-sitter query. Compatible with aerial.nvim symbol queries.
Add symbol_query to your file_type config.
Query will only handle @name captures.
pub const file_type = std.StaticStringMap(FileTypeConfig).initComptime(.{
.{ ".ts", FileTypeConfig{
.name = "typescript",
.ts = .{
// ...
.symbol_query = "./queries/typescript/symbols.scm",
},
} },
});Create a mapping:
} else if (editor.mode == .normal and eql(u8, multi_key, " f")) {
try buffer.findSymbols();