ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
1.9k stars 119 forks source link

fix: limit codelens refresh to current buffer #476

Closed leejuyuu closed 2 weeks ago

leejuyuu commented 3 weeks ago

The behavior of vim.lsp.codelens.refresh() had been changed in https://github.com/neovim/neovim/pull/27253 to refresh all open buffers.

This changes the function calls to specify the current buffer to maintain the old behavior.

Fixes https://github.com/ray-x/go.nvim/issues/472.