From 8f0c29527de8b9ed61b9bb5e1096a1b114bb96c7 Mon Sep 17 00:00:00 2001 From: doryan Date: Sat, 14 Dec 2024 02:53:56 +0400 Subject: [PATCH] feat: reduce dropbar config --- lua/config/plugins/dropbar.lua | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/lua/config/plugins/dropbar.lua b/lua/config/plugins/dropbar.lua index 758c4a2..3c538a9 100644 --- a/lua/config/plugins/dropbar.lua +++ b/lua/config/plugins/dropbar.lua @@ -1,10 +1,4 @@ -vim.api.nvim_create_autocmd({ 'BufReadPost', 'BufNewFile', 'BufWritePost' }, { - once = true, - group = vim.api.nvim_create_augroup('DropBarSetup', {}), - callback = function() - if vim.g.loaded_dropbar then - return - end - require('dropbar').setup() - end, -}) +require('dropbar').setup() +vim.ui.select = require('dropbar.utils.menu').select +vim.api.nvim_set_hl(0, 'DropBarMenuHoverEntry', { link = 'PmenuExtraSel' }) +