From 18a82b51aaa748732af7f1cfecdf70336f5209e3 Mon Sep 17 00:00:00 2001 From: mightypanders Date: Wed, 24 Aug 2022 12:08:57 +0200 Subject: [PATCH] on_attach for lua lsp --- nvim/lua/new_lsp_conf.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/lua/new_lsp_conf.lua b/nvim/lua/new_lsp_conf.lua index dd4940f..cc8ff06 100644 --- a/nvim/lua/new_lsp_conf.lua +++ b/nvim/lua/new_lsp_conf.lua @@ -48,6 +48,8 @@ require('mason-lspconfig').setup_handlers{ end, ['sumneko_lua'] = function() require('lspconfig')["sumneko_lua"].setup { + on_attach = on_attach, + flags = lsp_flags, settings = { Lua = { diagnostics = {