~whynothugo/lsp_lines.nvim#29: 
Install Issues

When trying to install through packer I am getting this error on windows 11

fatal: could not create leading directories of 'C:\Users\Snekxs\AppData\Local\nvim-data\site\pack\packer\start\https://git.sr.ht/~whynothugo/lsp_lines.nvim': Invalid argument

Wondering if something is broken on my side

Status
REPORTED
Submitter
~snekxs
Assigned to
No-one
Submitted
1 year, 4 months ago
Updated
4 months ago
Labels
No labels applied.

~whynothugo 1 year, 4 months ago

On Thu, 17 Nov 2022, at 20:08, ~snekxs wrote:

When trying to install through packer I am getting this error on windows 11

fatal: could not create leading directories of 'C:\Users\Snekxs\AppData\Local\nvim-data\site\pack\packer\start\https://git.sr.ht/~whynothugo/lsp_lines.nvim': Invalid argument

Wondering if something is broken on my side

-- View on the web: https://todo.sr.ht/~whynothugo/lsp_lines.nvim/29

I suspect your doing something wrong, but this is a packer issue.

Check your packer setup with packer's docs/README.

-- Hugo

~whynothugo referenced this from #29 1 year, 4 months ago

~whynothugo 1 year, 1 month ago

~paulh 4 months ago*

You can fix this by using as = 'lsp_lines.nvim'

Example:

use({
    "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
    as = 'lsp_lines.nvim',
    config = function()
        require("lsp_lines").setup()
        vim.diagnostic.config({
            virtual_text = false,
        })
    end,
})

From my understanding, the reason this happens is that packer tries to create a folder to install the plugin using the plugin's name which in this case is the full url to the sourcehut repo which isn't a valid directory name. Giving it an alias that is a valid directory name makes it succeed. Credit to this comment: https://github.com/wbthomason/packer.nvim/issues/858#issuecomment-1172869552

Register here or Log in to comment, or comment via email.