ray-x / go.nvim

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

GoModTidy has effect only run in a buffer with go.mod #422

Open ruilya opened 5 months ago

ruilya commented 5 months ago

Currently, when :GoModTidy is ran it does nothing if go.mod is not opened in current buffer. When go.mod is opened in current buffer, :GoModTidy runs as expected

nvhai245 commented 4 months ago

Can confirm. With an opened go.mod buffer sometimes I get the error: gopls: 0: All files must be saved first although I aready saved all buffers.