neovim: update iferr snippet
This commit is contained in:
@@ -153,13 +153,11 @@ ls.add_snippets("go", {
|
|||||||
local params = {}
|
local params = {}
|
||||||
for index = 0, return_type_node:child_count(), 1 do
|
for index = 0, return_type_node:child_count(), 1 do
|
||||||
local param = return_type_node:child(index)
|
local param = return_type_node:child(index)
|
||||||
if param then
|
if param and param:type() == "parameter_declaration" then
|
||||||
if param:type() == "parameter_declaration" then
|
|
||||||
local text = ts_utils.get_node_text(param)
|
local text = ts_utils.get_node_text(param)
|
||||||
table.insert(params, text[1])
|
table.insert(params, text[1])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
local rec = {
|
local rec = {
|
||||||
["string"] = '""',
|
["string"] = '""',
|
||||||
|
|||||||
Reference in New Issue
Block a user