Closed ep4sh closed 2 years ago
Vim-go does not set readonly
on any of the Go buffers.
Can you duplicate this behavior without any other plugins loaded?
Thank you, @bhcleek , apologize for a late response, I was managed to figure out the problem plugin (nerd-tree) by switching off one-by-one other plugins.
JFYI - the issue occurs when static check is failed for .go
file
What did you do? (required: The issue will be closed when not provided)
Save any file after changes, for instance - changing an interface signature or any other changes which related to the separate func call.
What did you expect to happen?
Files has been saved
What happened instead?
Vim goes to read only mode and tells me to use
:w!
to save the file. Only vim exit helps, until I will change another signature.Configuration (MUST fill this out):
vim-go version:
v1.25-300-g05f97b7
vimrc
you used to reproduce:vimrc
```vim call plug#begin('~/.vim/plugged') Plug 'preservim/nerdtree' Plug 'arcticicestudio/nord-vim' Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh' } Plug 'flazz/vim-colorschemes' Plug 'tweekmonster/gofmt.vim' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' Plug 'mbbill/undotree' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' } Plug 'fatih/vim-go' Plug 'vim-airline/vim-airline' Plug 'rust-lang/rust.vim' Plug 'hashivim/vim-terraform' Plug 'vim-scripts/groovy.vim' Plug 'ollykel/v-vim' call plug#end() ```Vim version (first three lines from
:version
):VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Nov 13 2021 05:04:57) macOS version - x86_64 Included patches: 1-2671, 3402, 3409, 3428, 3489
Go version (
go version
):go version go1.17.6 darwin/amd64
Go environment
go env
Output:gopls version
gopls version
Output:vim-go configuration:
vim-go configuration
filetype detection configuration:
filetype detection
Please let me know if any additional details are required, appreciate your time and your help. Thank you in advance, Pasha