ibhagwan / fzf-lua

Improved fzf.vim written in lua
MIT License
2.29k stars 149 forks source link

Make git change hard reset the buffer #1030

Closed I-Own-You closed 8 months ago

I-Own-You commented 8 months ago

Info

fzf-lua configuration ```lua require('fzf-lua').setup({ -- default with some changing for rg,fd and UI things }) ```

Description

When i use :FzfLua gti_status, and then i press ctrl+x, it supposes to reset the buffer, and it resets the buffer, but only if i dont have the buffer opened (not in the bakcground).

I would want it to reset the buffer while being opened as well, if thats possible.

Screencast from 2024-02-05 21-58-17.webm

ibhagwan commented 8 months ago

I'm aware of this issue, it requires further digging about the correct way to reload existing buffers in neovim other than e! (as sometimes you'd reset more than the current buffer).

ibhagwan commented 8 months ago

https://github.com/ibhagwan/fzf-lua/commit/78bd3729e18a544331f15be8e65ae52fc4390ac7

I was able to find a more elegant solution by calling :checktime which respects the users' autoread setting.