fix automated handling of libraries with sumneko_lua + lua-dev

- This also fixes auto completion with native vim api using lua-dev and
  nvim-cmp (also complements #229)
pull/235/head
spike 2 years ago
parent c583e1a69d
commit 83785dcafe

@ -28,7 +28,9 @@ local sumneko_cfg = {
},
},
on_new_config = function(cfg, root)
local libs = vim.tbl_deep_extend('force', {}, library)
local libs = vim.schedule(function()
vim.tbl_deep_extend('force', {}, library)
end)
libs[root] = nil
cfg.settings.Lua.workspace.library = libs
return cfg

Loading…
Cancel
Save