fix(clangd): vim.fn.input accept only 1 argument

Fix the lua_ls redundant-parameter's error:

```
1. This function expects a maximum of 1 argument(s) but instead it is receiving 3. [redundant-parameter]
```
This commit is contained in:
Robson Roberto Souza Peixoto 2023-07-07 10:13:38 -03:00
parent abea2807ce
commit 4ea7376202
No known key found for this signature in database

View file

@ -134,7 +134,11 @@ return {
request = "launch",
name = "Launch file",
program = function()
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
return vim.fn.input({
prompt = "Path to executable: ",
default = vim.fn.getcwd() .. "/",
completion = "file",
})
end,
cwd = "${workspaceFolder}",
},