aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-11-15 01:15:17 -0800
committerGitHub <noreply@github.com>2021-11-15 01:15:17 -0800
commit21d55ce23b50f3a0aff25ba22e4e0f6d8cf3ce02 (patch)
tree898f5978aea09ed09bb24ae91214eb15b824c370 /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-21d55ce23b50f3a0aff25ba22e4e0f6d8cf3ce02.tar
nvim-lspconfig-21d55ce23b50f3a0aff25ba22e4e0f6d8cf3ce02.tar.gz
nvim-lspconfig-21d55ce23b50f3a0aff25ba22e4e0f6d8cf3ce02.tar.bz2
nvim-lspconfig-21d55ce23b50f3a0aff25ba22e4e0f6d8cf3ce02.tar.lz
nvim-lspconfig-21d55ce23b50f3a0aff25ba22e4e0f6d8cf3ce02.tar.xz
nvim-lspconfig-21d55ce23b50f3a0aff25ba22e4e0f6d8cf3ce02.tar.zst
nvim-lspconfig-21d55ce23b50f3a0aff25ba22e4e0f6d8cf3ce02.zip
chore: clean up unused function args (#1426)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/rust_analyzer.lua4
-rw-r--r--lua/lspconfig/util.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/lua/lspconfig/rust_analyzer.lua b/lua/lspconfig/rust_analyzer.lua
index bbe86b3d..285ba0f3 100644
--- a/lua/lspconfig/rust_analyzer.lua
+++ b/lua/lspconfig/rust_analyzer.lua
@@ -25,10 +25,10 @@ configs.rust_analyzer = {
local cargo_metadata = ''
local cargo_metadata_err = ''
local cm = vim.fn.jobstart(cmd, {
- on_stdout = function(j, d, e)
+ on_stdout = function(_, d, _)
cargo_metadata = table.concat(d, '\n')
end,
- on_stderr = function(j, d, e)
+ on_stderr = function(_, d, _)
cargo_metadata_err = table.concat(d, '\n')
end,
stdout_buffered = true,
diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua
index 3699d2f0..8ae8d597 100644
--- a/lua/lspconfig/util.lua
+++ b/lua/lspconfig/util.lua
@@ -186,7 +186,7 @@ M.path = (function()
-- Iterate the path until we find the rootdir.
local function iterate_parents(path)
- local function it(s, v)
+ local function it(_, v)
if v and not is_fs_root(v) then
v = dirname(v)
else