Remove unnecessary on_attach function in lua lsp.

This commit is contained in:
Marco 2023-09-29 11:37:13 +02:00
parent db661fb774
commit a12fa2bf8a

View File

@ -1,9 +1,5 @@
local nvim_lsp = require ('lspconfig')
local on_attach = function(client, bufnr)
end
nvim_lsp.gopls.setup{
cmd = {'gopls'},
filetypes = {"go", "gomod"},
@ -15,5 +11,4 @@ nvim_lsp.gopls.setup{
staticcheck = true,
},
},
on_attach = on_attach,
}