folke / neoconf.nvim

💼 Neovim plugin to manage global and project-local settings
Apache License 2.0
715 stars 29 forks source link

bug: Setup `require("neoconf").setup()` should be run **BEFORE** BUG #58

Closed leoatchina closed 2 months ago

leoatchina commented 4 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.10 (nvim-qt and neovide)

Operating system/version

WIndow10/11

Describe the bug

My (neo)vim's config is set up aiming to compatible for both neovim and vim in LINUX/MACOS/WINDOWS, so I have to use vim-plug to setting up my config , and :luafile is occupied to load pure lua plugins.
I have run into such a strange bug with neovim with gui, in other words nvim-qt and neovide. In my config neoconf is definitely set up before mason-lspconfig.In other OS or neovim without gui in windows, the waring NOT raised up when I start neovim , I only appear in windows when I use neovide or nvim-qt. https://github.com/leoatchina/leovim/blob/master/conf.d/element/lua/lsp.lua

I think it must be the lsputil check bug. https://github.com/folke/neoconf.nvim/blob/f1fd38d61d11f3b1b3e7dc75dc667f79cf2fa58b/lua/neoconf/health.lua#L72-L78

Steps To Reproduce

WINDOWS-> vim-plug-> neovide or nvim-qt

Expected Behavior

No, warning

Repro

https://github.com/leoatchina/leovim/blob/master/conf.d/element/lua/lsp.lua

jgoguen commented 3 months ago

I'm seeing this on Fedora 39, CLI nvim, using lazy.nvim as the config base. The only customization I'm doing around neoconf is setting import.vscode = false:

-- ~/.config/nvim/lua/plugins/neoconf.lua
 local M = {
    'folke/neoconf.nvim',
    opts = {
        import = {
            vscode = false,
        },
    },
}

return M

And I'm loading plugin configs using lazy's spec parameter:

-- ~/.config/nvim/lua/config/lazy.lua

require('lazy').setup({
    spec = {
        { 'LazyVim/LazyVim', import = 'lazyvim.plugins' },
        { import = 'plugins' },
    },
})

My full neovim config, if needed, is at https://github.com/jgoguen/dotfiles/tree/main/dot_config/exact_nvim/exact_lua (managed by chezmoi, the exact_ prefix on a directory name tells chezmoi to remove any files it doesn't know about in that directory).

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 7 days with no activity.