From aaa8d74abf1d92dcd8ed6ec7ed0fd063be2ef298 Mon Sep 17 00:00:00 2001 From: danymat Date: Tue, 1 Feb 2022 13:12:36 +0100 Subject: [PATCH] fix(rs) Show typed parameters --- lua/neogen/configurations/rust.lua | 4 ++-- lua/neogen/templates/rust_alternative.lua | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/neogen/configurations/rust.lua b/lua/neogen/configurations/rust.lua index e605e0c..f494f21 100644 --- a/lua/neogen/configurations/rust.lua +++ b/lua/neogen/configurations/rust.lua @@ -27,7 +27,7 @@ return { retrieve = "first", node_type = "identifier", extract = true, - i.Parameter, + as = i.Parameter, }, }, }, @@ -35,7 +35,7 @@ return { retrieve = "all", node_type = "type_identifier", extract = true, - as = i.Tparam, + as = i.Parameter, }, }, }, diff --git a/lua/neogen/templates/rust_alternative.lua b/lua/neogen/templates/rust_alternative.lua index cc970a5..8e562c1 100644 --- a/lua/neogen/templates/rust_alternative.lua +++ b/lua/neogen/templates/rust_alternative.lua @@ -9,6 +9,5 @@ return { { nil, "/ $1", { type = { "func", "class" } } }, { nil, "/", { type = { "class", "func" } } }, { i.Parameter, "/ * `%s`: $1", { type = { "class" } } }, - { i.Tparam, "/ * `%s`: $1", { type = { "func" } } }, { i.Parameter, "/ * `%s`: $1", { type = { "func" } } }, }