env
NVIM v0.7.2
nvim-lspconfig v0.1.3
CentOS Linux 8
gopls v0.9.5
nvim-lspconfig config
as same as GitHub - neovim/nvim-lspconfig: Quickstart configs for Nvim LSP
lspInfo
golang code
package main
import (
"fmt"
)
func main() {
fmt.Println("hello world")
}
I move the cursor to Println
and press gd
or gD
, nothing happens.
I configured vim.lsp.set_log_level("debug")
, the lsplog is as follows
[START][2022-10-08 04:01:25] LSP logging initiated
[START][2022-10-08 04:01:48] LSP logging initiated
[START][2022-10-08 04:02:04] LSP logging initiated
[START][2022-10-08 04:02:40] LSP logging initiated
[START][2022-10-08 04:03:35] LSP logging initiated
[START][2022-10-08 04:03:46] LSP logging initiated
[START][2022-10-08 04:04:55] LSP logging initiated
[START][2022-10-08 04:16:11] LSP logging initiated
[START][2022-10-08 05:25:51] LSP logging initiated
[START][2022-10-08 05:26:06] LSP logging initiated