mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
elixir constants: prepend @
This commit is contained in:
parent
7ea5a44778
commit
2f35f6f47a
2 changed files with 3 additions and 1 deletions
|
@ -83,6 +83,8 @@ M.elixir = {
|
|||
local protocol_name = vim.treesitter.query.get_node_text(protocol, bufnr) or "<parse error>"
|
||||
item.name = string.format("%s > %s", item.name, protocol_name)
|
||||
end
|
||||
elseif item.kind == "Constant" then
|
||||
item.name = string.format("@%s", item.name)
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ describe("treesitter elixir", function()
|
|||
children = {
|
||||
{
|
||||
kind = "Constant",
|
||||
name = "constant",
|
||||
name = "@constant",
|
||||
level = 1,
|
||||
lnum = 26,
|
||||
col = 2,
|
||||
|
|
Loading…
Reference in a new issue