From 027068511a1ffba62e9af8988133063387b7dd28 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Fri, 11 Feb 2022 18:45:27 -0800 Subject: [PATCH] bugfix: delimiter for 'dap_breakpoints' --- README.md | 2 +- doc/fzf-lua.txt | 2 +- lua/fzf-lua/config.lua | 4 ++-- lua/fzf-lua/previewer/fzf.lua | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1ed8b9d..5ebd1c8 100644 --- a/README.md +++ b/README.md @@ -586,7 +586,7 @@ require'fzf-lua'.setup { fzf_opts = { -- do not include bufnr in fuzzy matching -- tiebreak by line no. - ['--delimiter'] = vim.fn.shellescape('[\\]]'), + ['--delimiter'] = vim.fn.shellescape('[]]'), ["--nth"] = '2..', ["--tiebreak"] = 'index', }, diff --git a/doc/fzf-lua.txt b/doc/fzf-lua.txt index 4f33bae..8fbe0e0 100644 --- a/doc/fzf-lua.txt +++ b/doc/fzf-lua.txt @@ -628,7 +628,7 @@ Consult the list below for available settings: fzf_opts = { -- do not include bufnr in fuzzy matching -- tiebreak by line no. - ['--delimiter'] = vim.fn.shellescape('[\\]]'), + ['--delimiter'] = vim.fn.shellescape('[]]'), ["--nth"] = '2..', ["--tiebreak"] = 'index', }, diff --git a/lua/fzf-lua/config.lua b/lua/fzf-lua/config.lua index cc6abd4..9714791 100644 --- a/lua/fzf-lua/config.lua +++ b/lua/fzf-lua/config.lua @@ -343,7 +343,7 @@ M.globals.lines = { show_unlisted = false, no_term_buffers = true, fzf_opts = { - ['--delimiter'] = vim.fn.shellescape('[\\]]'), + ['--delimiter'] = vim.fn.shellescape('[]]'), ["--nth"] = '2..', ["--tiebreak"] = 'index', }, @@ -540,7 +540,7 @@ M.globals.dap = { previewer = M._default_previewer_fn, _actions = function() return M.globals.actions.files end, fzf_opts = { - ['--delimiter'] = vim.fn.shellescape('[\\]]'), + ['--delimiter'] = vim.fn.shellescape('[]]'), ["--with-nth"] = '2..', }, }, diff --git a/lua/fzf-lua/previewer/fzf.lua b/lua/fzf-lua/previewer/fzf.lua index 3b71880..bf1f883 100644 --- a/lua/fzf-lua/previewer/fzf.lua +++ b/lua/fzf-lua/previewer/fzf.lua @@ -50,7 +50,7 @@ function Previewer.base:fzf_delimiter() if delim:match("%[.*%]")then delim = delim:match("(%[.*)%]") .. ':]' else - delim = '[' .. delim .. ':]' + delim = '[' .. delim:match("[^[^']+") .. ':]' end end return delim