From d27f9b1131a1ad15002dbf38ecac09b015d3c0e2 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Wed, 11 May 2022 21:11:31 -0700 Subject: [PATCH] blines: fix bat previewer line offset (fzf field index) --- lua/fzf-lua/providers/buffers.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/fzf-lua/providers/buffers.lua b/lua/fzf-lua/providers/buffers.lua index 9e85b34..8bc7be3 100644 --- a/lua/fzf-lua/providers/buffers.lua +++ b/lua/fzf-lua/providers/buffers.lua @@ -208,6 +208,7 @@ end M.blines = function(opts) opts = config.normalize_opts(opts, config.globals.blines) opts.current_buffer_only = true + opts.line_field_index = opts.line_field_index or 2 M.buffer_lines(opts) end