fix: lazy loading of conform and which-key, raise conform timeout

This commit is contained in:
Oliver Ladner 2025-11-19 11:20:12 +01:00
commit 77a1e09678
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,7 @@
-- Some things are from https://www.josean.com/posts/neovim-linting-and-formatting -- Some things are from https://www.josean.com/posts/neovim-linting-and-formatting
return { return {
"stevearc/conform.nvim", "stevearc/conform.nvim",
event = { "BufReadPre", "BufNewFile" },
enabled = true, enabled = true,
tag = "stable", tag = "stable",
opts = {}, opts = {},
@ -33,7 +34,7 @@ return {
-- lsp_fallback = true, -- lsp_fallback = true,
lsp_format = "fallback", lsp_format = "fallback",
async = false, async = false,
timeout_ms = 1000, -- default: 1000 timeout_ms = 2000, -- default: 1000
}, },
}) })
end, end,

View file

@ -1,6 +1,5 @@
return { return {
"folke/which-key.nvim", "folke/which-key.nvim",
--event = { "BufReadPre", "BufNewFile" },
event = "VeryLazy", event = "VeryLazy",
init = function() init = function()
vim.o.timeout = true vim.o.timeout = true