lsp_on_attach default to false

pull/62/head
ray-x 3 years ago
parent f9398a6c2b
commit f53e130370

@ -25,7 +25,7 @@ The plugin covers most features required for a gopher.
## Installation
Use your favorite package manager to install. The dependency `treesitter` (and optionally, treesitter-objects)
Use your favorite package manager to install. The dependency `treesitter` (and optionally, treesitter-objects)
will be installed the first time you use it.
### [vim-plug](https://github.com/junegunn/vim-plug)
@ -402,7 +402,7 @@ require('go').setup({
-- if lsp_cfg is a table, merge table with with non-default gopls setup in go/lsp.lua, e.g.
-- lsp_cfg = {settings={gopls={matcher='CaseInsensitive', ['local'] = 'your_local_module_path', gofumpt = true }}}
lsp_gofumpt = false, -- true: set default gofmt in gopls format to gofumpt
lsp_on_attach = true, -- true: use on_attach function defined in go/lsp.lua
lsp_on_attach = false, -- true: use on_attach function defined in go/lsp.lua
-- false: do nothing
-- if lsp_on_attach is a function: use this function as on_attach function for gopls
lsp_codelens = true, -- set to false to disable codelens, true by default

@ -13,7 +13,7 @@ _GO_NVIM_CFG = {
log_path = vim.fn.expand("$HOME") .. "/tmp/gonvim.log",
lsp_cfg = false, -- true: apply go.nvim non-default gopls setup
lsp_gofumpt = false, -- true: set default gofmt in gopls format to gofumpt
lsp_on_attach = nil, -- provides a on_attach function to gopls, will use go.nvim on_attach if nil
lsp_on_attach = false, -- provides a on_attach function to gopls, will use go.nvim on_attach if nil
lsp_diag_hdlr = true, -- hook lsp diag handler
lsp_codelens = true,
gopls_remote_auto = true,

Loading…
Cancel
Save