Skip to content

Neovim looks for and stores configurations in Windows locations instead of Unix locations #17855

@500-internal-server-error

Description

Description / Steps to reproduce the issue

neovim has an official Windows version available, which uses Windows-style paths and locations to look for and store configuration files (e.g., %localappdata%\nvim-data\). As expected, on Linux, neovim uses Unix-style paths and locations instead (e.g., $XDG_CONFIG_HOME/nvim/).

In general, I expect MSYS2 / mingw to be a compatibility shim to allow traditionally native Unix utilities to run on Windows. This includes paths, but not locations. Doing so would cleanly separate documentation/tutorials/configurations for "native" Windows apps from *nix apps (which I consider MSYS2 / mingw apps to be, despite using native Windows APIs).

Tested with mingw-w64-ucrt-x86_64-neovim, but probably affects other environments too.

Expected behavior

I expect mingw-w64-ucrt-x86_64-neovim to use Unix locations to store and look for configuration files (e.g., $XDG_CONFIG_HOME/nvim).

Actual behavior

mingw-w64-ucrt-x86_64-neovim uses Windows locations to store and look for configuration files (e.g., %localappdata%\nvim-data).

Verification

Windows Version

MSYS_NT-10.0-22621

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions