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 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,
} }