From 273f799a2ef78583f3941d020f8b45a46c65fbab Mon Sep 17 00:00:00 2001 From: Sirisak Lueangsaksri <1087399+spywhere@users.noreply.github.com> Date: Fri, 3 Nov 2023 11:25:45 +0700 Subject: [PATCH] refactor(nvim): no winbar for non-normal buffer --- configs/nvim/lua/plugin/appearance/miniline.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/nvim/lua/plugin/appearance/miniline.lua b/configs/nvim/lua/plugin/appearance/miniline.lua index 6bc7f72..2a1ec30 100644 --- a/configs/nvim/lua/plugin/appearance/miniline.lua +++ b/configs/nvim/lua/plugin/appearance/miniline.lua @@ -513,10 +513,11 @@ local setup = function () local win_cfg = api.nvim_win_get_config(wid) local bufid = api.nvim_win_get_buf(wid) local ft = api.nvim_buf_get_option(bufid, 'filetype') + local bt = api.nvim_buf_get_option(bufid, 'buftype') local skip = ( ft == 'NvimTree' or ft == 'TreeFilter' or ft == 'alpha' or ft == 'vim-plug' or ft == 'packer' or ft == 'qf' or ft == 'dbui' or - ft == 'dbout' + ft == 'dbout' or bt ~= '' ) if