mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
refactor: don't display anonymous lua functions
I find that showing anonymous functions is never helpful. These are typically passed in as callback arguments to other functions, and are not helpful to show in a symbol tree. They also break my expectations for navigation.
This commit is contained in:
parent
fb1f08c9f9
commit
1a9896a7ca
2 changed files with 0 additions and 15 deletions
|
@ -44,7 +44,3 @@
|
|||
(function_definition) @type)
|
||||
(#set! "kind" "Function")
|
||||
) @start
|
||||
|
||||
(function_definition
|
||||
(#set! "kind" "Function")
|
||||
) @type
|
||||
|
|
|
@ -38,17 +38,6 @@ describe("treesitter lua", function()
|
|||
col = 0,
|
||||
end_lnum = 18,
|
||||
end_col = 3,
|
||||
children = {
|
||||
{
|
||||
kind = "Function",
|
||||
name = "<Anonymous>",
|
||||
level = 1,
|
||||
lnum = 14,
|
||||
col = 7,
|
||||
end_lnum = 16,
|
||||
end_col = 5,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "Function",
|
||||
|
|
Loading…
Reference in a new issue