You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the code below as an example, renaming foo works as expected, but trying to rename Bar changing just the Bar part of the input text does nothing.
package main
type foo struct{}
func (*foo) Bar() {
}
func main() {
_ = foo{}
}
Deleting the input text (i.e. removing the trailing (*foo).) works.
The issue is due to handling the LSP rename ourselves in a naive approach, so we can handle blacklisted LSP clients from the config effectively. In nvim 0.8 vim.lsp.buf.rename added the ability to filter clients, so we can now delegate this task to the native API instead, which handles the rename for golang methods correctly.
outline_golang_rename.mov
This should now work with nvim 0.8+; the commit will be live soon.
Using the code below as an example, renaming foo works as expected, but trying to rename Bar changing just the Bar part of the input text does nothing.
Deleting the input text (i.e. removing the trailing (*foo).) works.
Versions:
nvim: v0.9.4
outline: rev d073791
gopls: v0.14.2
old issue: simrat39/symbols-outline.nvim#175 (comment)
The text was updated successfully, but these errors were encountered: