Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Windows global config file not recognized and Neoconf popup empty #33

Open
3 tasks done
burgr033 opened this issue Jun 20, 2023 · 1 comment
Open
3 tasks done
Labels
bug Something isn't working

Comments

@burgr033
Copy link

burgr033 commented Jun 20, 2023

Did you check docs and existing issues?

  • I have read all the neoconf.nvim docs
  • I have searched the existing issues of neoconf.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.9.1

Operating system/version

Windows 10 21H2

Describe the bug

Global config files don't get recognized under Windows and the popup window for selecting / editing config files is empty

image

using local config files works (except they don't show up in the popup either)

Steps To Reproduce

  1. neovim on Windows (Config is under $ENV:LOCALAPPDATA\nvim)
  2. open Neoconf (:Neoconf)
  3. Window is empty

Expected Behavior

Neoconf Popup should show either global or local config to edit

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
        vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
        vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
        "folke/tokyonight.nvim",
        "folke/neoconf.nvim",
        "neovim/nvim-lspconfig",
        -- add any other plugins here
}
require("lazy").setup(plugins, {
        root = root .. "/plugins",
})
require("neoconf").setup({})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
@burgr033 burgr033 added the bug Something isn't working label Jun 20, 2023
@WillEhrendreich
Copy link

so it's not just me! lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants