- 
                Notifications
    You must be signed in to change notification settings 
- Fork 46
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
- :lua vim.print(require("telescope-live-grep-args.prompt_parser").parse('-arg prompt_end_with_quote"'))
- get error
E5108: Error executing lua ...args.nvim/lua/telescope-live-grep-args/prompt_parser.lua:139: attempt to concatenate local 'frag' (a nil value)
stack traceback:
        ...args.nvim/lua/telescope-live-grep-args/prompt_parser.lua:139: in function 'parse'
        [string ":lua"]:1: in main chunkNeovim version
NVIM v0.9.4
Build type: RelWithDebInfo
LuaJIT 2.1.1696883897Operating system and version
Windows 11
Telescope version / branch / rev
0.1.4
Telescope live grep args version / branch / rev
master
checkhealth telescope
==============================================================================
telescope: require("telescope.health").check()
Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.
Checking external dependencies ~
- OK rg: found ripgrep 13.0.0 (rev af6b6c543b)
- OK fd: found fd 8.7.1
===== Installed extensions ===== ~
Telescope Extension: `fzf` ~
- OK lib working as expected
- OK file_sorter correctly configured
- OK generic_sorter correctly configured
Telescope Extension: `notify` ~
- No healthcheck provided
Telescope Extension: `projects` ~
- No healthcheck providedSteps to reproduce
- :lua vim.print(require("telescope-live-grep-args.prompt_parser").parse('-arg prompt_end_with_quote"'))
- get error
E5108: Error executing lua ...args.nvim/lua/telescope-live-grep-args/prompt_parser.lua:139: attempt to concatenate local 'frag' (a nil value)
stack traceback:
        ...args.nvim/lua/telescope-live-grep-args/prompt_parser.lua:139: in function 'parse'
        [string ":lua"]:1: in main chunkExpected behavior
search for prompt_end_with_quote"
Actual behavior
get error
Minimal config
vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
  require('packer').startup {
    {
      'wbthomason/packer.nvim',
      {
        'nvim-telescope/telescope.nvim',
        requires = {
          'nvim-lua/plenary.nvim',
          { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make', },
          { 'nvim-telescope/telescope-live-grep-args.nvim', },
        },
      },
      -- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
    },
    config = {
      package_root = package_root,
      compile_path = install_path .. '/plugin/packer_compiled.lua',
      display = { non_interactive = true },
    },
  }
end
_G.load_config = function()
  require('telescope').setup()
  require('telescope').load_extension('fzf')
  require('telescope').load_extension('live_grep_args')
  -- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
end
if vim.fn.isdirectory(install_path) == 0 then
  print("Installing Telescope and dependencies.")
  vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
end
load_plugins()
require('packer').sync()
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]el-og
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working