From d3a4a487a1f9b81a7c10d383717b372936247b33 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 14 Oct 2024 16:08:12 +0200 Subject: [PATCH] nvim: lsp: lazy load on BufReadPre and BufNewFile events. --- nvim/lua/user/plugins/lsp.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nvim/lua/user/plugins/lsp.lua b/nvim/lua/user/plugins/lsp.lua index aa35109..a7ff34f 100644 --- a/nvim/lua/user/plugins/lsp.lua +++ b/nvim/lua/user/plugins/lsp.lua @@ -1,7 +1,6 @@ return { "neovim/nvim-lspconfig", - -- event = "InsertEnter", - lazy = true, + event = { "BufReadPre", "BufNewFile" }, dependencies = { { "williamboman/mason.nvim",