fdschmidt93 / telescope-egrepify.nvim

Variable user customization for telescope.live_grep to set rg flags on-the-fly
MIT License
123 stars 13 forks source link

The plugin cannot be configured #41

Closed MaJinjie closed 4 months ago

MaJinjie commented 4 months ago

Description

I really like your plugin, but unfortunately I only saw it today. I found that the configuration in 'telescope. opts. extensions. egrepify' cannot be passed to 'egrepify' while using it. Even if I intercept opts in the setup function of the egrepify. config file, it is still an empty table.

Neovim version

NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713484068

Operating system and version

ArchLinux 6.9.5

Steps to reproduce

require("telescope").setup {
  extensions = {
    egrepify = {
      lnum = false,
    },
  }
}

:Telescope egrepify

### Expected behavior

set nonu

### Actual behavior

set nu

### Minimal config

```Lua
return {
  "nvim-telescope/telescope.nvim",
  dependencies = {
    "fdschmidt93/telescope-egrepify.nvim",
  },
  opts = function(_, opts)
    opts.extenstions.egrepify = {
      lnum = false,
    }
  end,
}
fdschmidt93 commented 4 months ago
require("telescope").setup {
  extensions = {
    egrepify = {
      lnum = false,
    },
  }
}

This works for me. Your config is also not minimal.

MaJinjie commented 4 months ago

You are correct, I seem to have made a mistake in my vocabulary. Thank you