From 77a1e096784cd1251bd8f4816ce620206056bc07 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Wed, 19 Nov 2025 11:20:12 +0100 Subject: [PATCH] fix: lazy loading of conform and which-key, raise conform timeout --- lua/weeheavy/plugins/lsp/conform.lua | 3 ++- lua/weeheavy/plugins/which-key.lua | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/weeheavy/plugins/lsp/conform.lua b/lua/weeheavy/plugins/lsp/conform.lua index df78cea..2a99cae 100644 --- a/lua/weeheavy/plugins/lsp/conform.lua +++ b/lua/weeheavy/plugins/lsp/conform.lua @@ -1,6 +1,7 @@ -- Some things are from https://www.josean.com/posts/neovim-linting-and-formatting return { "stevearc/conform.nvim", + event = { "BufReadPre", "BufNewFile" }, enabled = true, tag = "stable", opts = {}, @@ -33,7 +34,7 @@ return { -- lsp_fallback = true, lsp_format = "fallback", async = false, - timeout_ms = 1000, -- default: 1000 + timeout_ms = 2000, -- default: 1000 }, }) end, diff --git a/lua/weeheavy/plugins/which-key.lua b/lua/weeheavy/plugins/which-key.lua index af5184f..91a84e3 100644 --- a/lua/weeheavy/plugins/which-key.lua +++ b/lua/weeheavy/plugins/which-key.lua @@ -1,6 +1,5 @@ return { "folke/which-key.nvim", - --event = { "BufReadPre", "BufNewFile" }, event = "VeryLazy", init = function() vim.o.timeout = true