lazyload for lua-dev

This commit is contained in:
ray-x 2021-10-05 17:53:53 +11:00
parent 1f3680d4b1
commit a952d694e1
2 changed files with 31 additions and 31 deletions

View File

@ -1,10 +1,10 @@
return {
init = function()
local loader = nil
local packer_plugins = packer_plugins or nil -- suppress warnings
local loader = nil
local packer_plugins = packer_plugins or nil -- suppress warnings
local log = require'navigator.util'.log
-- packer only
if packer_plugins ~= nil then -- packer install
-- packer only
if packer_plugins ~= nil then -- packer install
local lazy_plugins = {
["nvim-lspconfig"] = "neovim/nvim-lspconfig",
["guihua.lua"] = "ray-x/guihua.lua"
@ -41,7 +41,7 @@ if packer_plugins ~= nil then -- packer install
require'lspconfig'[server].setup(lsp_inst_cfg)
end
end
end
end
end
end,
load = function(plugin_name, path)

View File

@ -44,7 +44,7 @@ local luadevcfg = {
}
local luadev = {}
require'navigator.lazyloader'.load('lua-dev', 'folke/lua-dev.nvim')
require'navigator.lazyloader'.load('lua-dev.nvim', 'folke/lua-dev.nvim')
local ok, l = pcall(require, "lua-dev")
if ok and l then
luadev = l.setup(luadevcfg)