mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
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:
parent
abea2807ce
commit
4ea7376202
1 changed files with 5 additions and 1 deletions
|
|
@ -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}",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue