Skip to content

Adding context in curl yank command #563

@sheenazien8

Description

@sheenazien8

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin
  • I can reproduce the bug with minimal config below

Neovim Version

v0.11.5

Operating system/version

MacOS 15.1

Actual behavior

In yank curl command doesn't copied the baseUrl when the baseUrl is from env

Expected behavior

I think the yank curl command should copy the baseUrl even from the environment variables.

Steps to reproduce

select the .env that you want to use
then run the Rest curl yank commands

Minimal config for repro (using lazy.nvim)

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
        "rest-nvim/rest.nvim",
        {
            "nvim-treesitter/nvim-treesitter",
            build = ":TSUpdate",
            main = "nvim-treesitter.configs",
            opts = {
                ensure_installed = { "http" },
                sync_install = false,
                highlight = { enable = true },
                indent = { enable = true },
            },
        },
    },
})

Other information

I already fixed it in my fork, sheenazien8@81455f1

If this approach looks good to you, I’d be happy to open a pull request or adjust the implementation based on your feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions