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}",
|
||||
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,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue