Skip to content

Commit 64edfa9

Browse files
phanenibhagwan
authored andcommitted
fix(preview): copy buffer option to correctly position indent-blankline extmark (#2583)
1 parent cc81c66 commit 64edfa9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/fzf-lua/previewer/builtin.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,9 @@ function Previewer.buffer_or_file:populate_preview_buf(entry_str)
10181018
entry.filetype = vim.bo[entry.bufnr].filetype
10191019
local lines = api.nvim_buf_get_lines(entry.bufnr, 0, -1, false)
10201020
local tmpbuf = reuse_buf or self:get_tmp_buffer()
1021+
vim.bo[tmpbuf].expandtab = vim.bo[entry.bufnr].expandtab
1022+
vim.bo[tmpbuf].shiftwidth = vim.bo[entry.bufnr].shiftwidth
1023+
vim.bo[tmpbuf].tabstop = vim.bo[entry.bufnr].tabstop
10211024
api.nvim_buf_set_lines(tmpbuf, 0, -1, false, lines)
10221025
-- terminal buffers use minimal window style (2nd arg)
10231026
self:set_preview_buf(tmpbuf, entry.terminal)

0 commit comments

Comments
 (0)