From e236c0ae8922fba96b39bf98fda2e2642bed8895 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 22 May 2023 08:31:58 +0100 Subject: [PATCH] More startup optimisations Start which_key on key press Start lualine on loading a buffer Remove dressing as noice seems to have supersceded it --- lua/plugins/dressing.lua | 1 - lua/plugins/lualine.lua | 2 +- lua/plugins/which_key.lua | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 lua/plugins/dressing.lua diff --git a/lua/plugins/dressing.lua b/lua/plugins/dressing.lua deleted file mode 100644 index d19febd..0000000 --- a/lua/plugins/dressing.lua +++ /dev/null @@ -1 +0,0 @@ -return { "stevearc/dressing.nvim", event = "VeryLazy" } diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index acef030..0e21167 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -1,7 +1,7 @@ return { "nvim-lualine/lualine.nvim", dependencies = { "nvim-tree/nvim-web-devicons", "folke/noice.nvim", "folke/tokyonight.nvim" }, - event = { "VeryLazy" }, + event = { "BufReadPre", "BufNewFile" }, config = true, opts = { options = { diff --git a/lua/plugins/which_key.lua b/lua/plugins/which_key.lua index 6f540db..2f0fb2d 100644 --- a/lua/plugins/which_key.lua +++ b/lua/plugins/which_key.lua @@ -1,6 +1,6 @@ return { "folke/which-key.nvim", - event = { "VeryLazy" }, + keys = { "" }, init = function() vim.o.timeout = true vim.o.timeoutlen = 300