From e3b2dff3a9a43d6bde16f9fcdf6b1802e4952e76 Mon Sep 17 00:00:00 2001 From: bekaboo Date: Mon, 13 Jan 2025 14:02:25 -0500 Subject: [PATCH] refactor: lazy-load on FileType event --- plugin/dropbar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/dropbar.lua b/plugin/dropbar.lua index 758c4a21..83b540ec 100644 --- a/plugin/dropbar.lua +++ b/plugin/dropbar.lua @@ -1,4 +1,4 @@ -vim.api.nvim_create_autocmd({ 'BufReadPost', 'BufNewFile', 'BufWritePost' }, { +vim.api.nvim_create_autocmd('FileType', { once = true, group = vim.api.nvim_create_augroup('DropBarSetup', {}), callback = function()