mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
style: clangd arguments use vim.split instead of string.gsub
This commit is contained in:
parent
8b01baef4d
commit
6ca6498640
1 changed files with 1 additions and 5 deletions
|
|
@ -141,11 +141,7 @@ return {
|
||||||
cwd = "${workspaceFolder}",
|
cwd = "${workspaceFolder}",
|
||||||
args = function()
|
args = function()
|
||||||
local s = vim.fn.input("Args to pass: ")
|
local s = vim.fn.input("Args to pass: ")
|
||||||
local t = {}
|
return vim.split(s, " ")
|
||||||
_ = string.gsub(s, "[^ ]+", function(w)
|
|
||||||
table.insert(t, w)
|
|
||||||
end)
|
|
||||||
return t
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue