elixir constants: prepend @

This commit is contained in:
Emmanuel Touzery 2023-02-06 16:50:32 +01:00
parent 7ea5a44778
commit 2f35f6f47a
2 changed files with 3 additions and 1 deletions

View file

@ -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,
}

View file

@ -108,7 +108,7 @@ describe("treesitter elixir", function()
children = {
{
kind = "Constant",
name = "constant",
name = "@constant",
level = 1,
lnum = 26,
col = 2,