Giter Club home page Giter Club logo

Comments (5)

LunarLambda avatar LunarLambda commented on August 16, 2024

I would write a PR for this, however I can't really test it quickly, right now.

There's only 3 locations os_homedir is called:

lua/lazy/manage/process.lua:96:    opts.cwd = uv.os_homedir()
lua/lazy/core/util.lua:57:    local home = vim.uv.os_homedir()
lua/lazy/core/cache.lua:54:    local home = uv.os_homedir() or "~"

I think the process.lua one doesn't matter much since it's a fallback for internal command execution, I'm not sure about the cache.lua one though.

from lazy.nvim.

folke avatar folke commented on August 16, 2024

This seems to be more a bug with uv.os_homedir()? Please report a bug there instead.

from lazy.nvim.

LunarLambda avatar LunarLambda commented on August 16, 2024

I don't think it is? Using $HOME on Windows is not standard and a quirk of Vim. libuv returning %USERPROFILE% is objectively correct (for libuv) but Vim does it that way.

from lazy.nvim.

folke avatar folke commented on August 16, 2024

If libuv is returning the correct directpry, then I dont see what the issue is.

Anyway, just use a full path to point to the directory you need

from lazy.nvim.

LunarLambda avatar LunarLambda commented on August 16, 2024

The issue is that (Neo)vim does something that people rely on, and Lazy (a neovim plugin) doesn't follow that convention.

libuv shouldn't follow what vim does, but vim plugins should probably follow vim.

Either way, I just used expand('~') myself.

from lazy.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.