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
Basically there is some tricky interactions here with the lazy loading of nvim-lspconfig and neoconf because Neoconf needs the lspconfig module to be loaded but none of the servers to be set up, but the servers are set up on the loading of lspconfig. So if you just open up LazyVim and run :Neoconf local for example you will not get the proper completion at all. We want to defer the setup Neoconf to the start of the loading of lspconfig but still before the servers are set up which breaks down when you load Neoconf directly and it loads lspconfig itself which messes up the loading order of things and breaks some of the functionality for that session. You have to restart and make sure you open a file before you try to modify something with :Neoconf
Workarounds:
Open a file before you run :Neoconf
Open the .neoconf file directly if you need to just edit that file
Steps To Reproduce
run nvim
On the dashboard before anything is loaded really, run :Neoconf local (or :Neoconf global)
Loading neoconf lazily with :Neoconf should properly load things so that completion and everything works.
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",
"folke/LazyVim",
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
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.1 release
Operating system/version
Arch Linux
Describe the bug
This is a bit of a continuation off of #945
Basically there is some tricky interactions here with the lazy loading of
nvim-lspconfig
andneoconf
because Neoconf needs thelspconfig
module to be loaded but none of the servers to be set up, but the servers are set up on the loading oflspconfig
. So if you just open up LazyVim and run:Neoconf local
for example you will not get the proper completion at all. We want to defer the setup Neoconf to the start of the loading oflspconfig
but still before the servers are set up which breaks down when you load Neoconf directly and it loadslspconfig
itself which messes up the loading order of things and breaks some of the functionality for that session. You have to restart and make sure you open a file before you try to modify something with:Neoconf
Workarounds:
:Neoconf
.neoconf
file directly if you need to just edit that fileSteps To Reproduce
nvim
:Neoconf local
(or:Neoconf global
)Here is a detailed terminal recording: https://asciinema.org/a/JRC1tGtOPwKRNun9aA3QrqQht
Expected Behavior
Loading neoconf lazily with
:Neoconf
should properly load things so that completion and everything works.Repro
The text was updated successfully, but these errors were encountered: