on_attach for lua lsp

This commit is contained in:
mightypanders 2022-08-24 12:08:57 +02:00
parent 5fad30d9af
commit 18a82b51aa

View File

@ -48,6 +48,8 @@ require('mason-lspconfig').setup_handlers{
end, end,
['sumneko_lua'] = function() ['sumneko_lua'] = function()
require('lspconfig')["sumneko_lua"].setup { require('lspconfig')["sumneko_lua"].setup {
on_attach = on_attach,
flags = lsp_flags,
settings = { settings = {
Lua = { Lua = {
diagnostics = { diagnostics = {