style: clangd arguments use vim.split instead of string.gsub

This commit is contained in:
genmzy 2023-10-10 09:14:51 +08:00 committed by GitHub
parent 8b01baef4d
commit 6ca6498640
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,11 +141,7 @@ return {
cwd = "${workspaceFolder}",
args = function()
local s = vim.fn.input("Args to pass: ")
local t = {}
_ = string.gsub(s, "[^ ]+", function(w)
table.insert(t, w)
end)
return t
return vim.split(s, " ")
end,
},
{