mirror of
https://github.com/ray-x/navigator.lua
synced 2024-11-03 15:40:20 +00:00
lazyload for lua-dev
This commit is contained in:
parent
1f3680d4b1
commit
a952d694e1
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user