pkg(nixvim): Fix format command completion function
This commit is contained in:
parent
745a964d79
commit
3649602a07
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
end):map(function(val)
|
end):map(function(val)
|
||||||
return val.name
|
return val.name
|
||||||
end):filter(function(name)
|
end):filter(function(name)
|
||||||
return string.match(name, ArgLead) ~= nil
|
return string.match(name, "^" .. ArgLead) ~= nil
|
||||||
end):totable()
|
end):totable()
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
return vim.iter(require("conform").list_all_formatters()):map(function(val)
|
return vim.iter(require("conform").list_all_formatters()):map(function(val)
|
||||||
return val.name
|
return val.name
|
||||||
end):filter(function(name)
|
end):filter(function(name)
|
||||||
return string.match(name, ArgLead) ~= nil
|
return string.match(name, "^" .. ArgLead) ~= nil
|
||||||
end):totable()
|
end):totable()
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue