You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[[Setup `require("neoconf").setup()` should be run **BEFORE** setting up any lsp server with lspconfig]]
)
end
else
This is fine if the only thing using neoconf are plugins that are also dependencies of lspconfig but when an external dependency (especially one that is loaded earlier than lspconfig) is ran it will cause neoconf to load lspconfig before it returns (which in this configuration loads a lsp server).
Steps To Reproduce
have something earlier than lspconfig depend on neoconf
run neovim and get
Setup require("neoconf").setup() should be run BEFORE setting up any lsp server with lspconfig
Expected Behavior
Neoconf doesn't load lspconfig which creates the server but instead has some way of initializing without fetching the server count or solve it some other way that I haven't thought of
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{
'glepnir/dashboard-nvim',
event='VimEnter',
opts=function() returnrequire'neoconf'.get("plugins.dashboard", {}) end
},
{
'neovim/nvim-lspconfig',
config=function()
locallspconfig=require'lspconfig'lspconfig.lua_ls.setup {}
end,
event="BufAdd",
dependencies=
{
"folke/neoconf.nvim"
}
}
}
require("lazy").setup(plugins, {
root=root.."/plugins",
defaults= {lazy=true}
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
0.9.0
Operating system/version
Windows 11
Describe the bug
When neoconf is loaded it internally loads "lspconfig" to check if any servers are already active.
neoconf.nvim/lua/neoconf/health.lua
Lines 66 to 75 in bbf98ce
This is fine if the only thing using neoconf are plugins that are also dependencies of lspconfig but when an external dependency (especially one that is loaded earlier than lspconfig) is ran it will cause neoconf to load lspconfig before it returns (which in this configuration loads a lsp server).
Steps To Reproduce
Expected Behavior
Neoconf doesn't load lspconfig which creates the server but instead has some way of initializing without fetching the server count or solve it some other way that I haven't thought of
Repro
The text was updated successfully, but these errors were encountered: