aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/util.lua
diff options
context:
space:
mode:
authorPeter Lithammer <peter.lithammer@gmail.com>2022-03-28 14:07:55 +0200
committerPeter Lithammer <peter.lithammer@gmail.com>2022-03-28 14:20:49 +0200
commit99a374b7655042fdbf82a61ab9923f8997be0c03 (patch)
tree50830d4feca0537c4d4f4621c57f4c18c3ac8f42 /lua/lspconfig/util.lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-99a374b7655042fdbf82a61ab9923f8997be0c03.tar
nvim-lspconfig-99a374b7655042fdbf82a61ab9923f8997be0c03.tar.gz
nvim-lspconfig-99a374b7655042fdbf82a61ab9923f8997be0c03.tar.bz2
nvim-lspconfig-99a374b7655042fdbf82a61ab9923f8997be0c03.tar.lz
nvim-lspconfig-99a374b7655042fdbf82a61ab9923f8997be0c03.tar.xz
nvim-lspconfig-99a374b7655042fdbf82a61ab9923f8997be0c03.tar.zst
nvim-lspconfig-99a374b7655042fdbf82a61ab9923f8997be0c03.zip
ci: fix new luacheck v0.26.0 errors
See https://github.com/lunarmodules/luacheck/releases/tag/v0.26.0 lua/lspconfig/util.lua:225:40: used variable _make_config lua/lspconfig/configs.lua:207:63: used variable _root_dir lua/lspconfig/configs.lua:260:19: 'not (x == y)' can be replaced by 'x ~= y' (if neither side is a table or NaN)
Diffstat (limited to 'lua/lspconfig/util.lua')
-rw-r--r--lua/lspconfig/util.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua
index 25ca1689..3febafc0 100644
--- a/lua/lspconfig/util.lua
+++ b/lua/lspconfig/util.lua
@@ -222,7 +222,7 @@ end)()
-- Returns a function(root_dir), which, when called with a root_dir it hasn't
-- seen before, will call make_config(root_dir) and start a new client.
-function M.server_per_root_dir_manager(_make_config)
+function M.server_per_root_dir_manager(make_config)
local clients = {}
local single_file_clients = {}
local manager = {}
@@ -242,7 +242,7 @@ function M.server_per_root_dir_manager(_make_config)
-- Check if we have a client already or start and store it.
if not client_id then
- local new_config = _make_config(root_dir)
+ local new_config = make_config(root_dir)
-- do nothing if the client is not enabled
if new_config.enabled == false then
return