Remove unnecessary on_attach function in lua lsp.
This commit is contained in:
parent
db661fb774
commit
a12fa2bf8a
@ -1,9 +1,5 @@
|
|||||||
local nvim_lsp = require ('lspconfig')
|
local nvim_lsp = require ('lspconfig')
|
||||||
|
|
||||||
local on_attach = function(client, bufnr)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
nvim_lsp.gopls.setup{
|
nvim_lsp.gopls.setup{
|
||||||
cmd = {'gopls'},
|
cmd = {'gopls'},
|
||||||
filetypes = {"go", "gomod"},
|
filetypes = {"go", "gomod"},
|
||||||
@ -15,5 +11,4 @@ nvim_lsp.gopls.setup{
|
|||||||
staticcheck = true,
|
staticcheck = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
on_attach = on_attach,
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user