Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lvim-tech committed Sep 4, 2022
1 parent 1bf33f8 commit fb08050
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 0 additions & 1 deletion LVIM/modules/ui.org
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,6 @@
condition = function()
return heirline_conditions.buffer_matches({
buftype = {
"nofile",
"prompt",
"help",
"quickfix",
Expand Down
8 changes: 6 additions & 2 deletions lua/configs/base/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ configs["base_events"] = function()
local buf = args.buf
local buftype = vim.tbl_contains({
"prompt",
"nofile",
"help",
"quickfix",
}, vim.bo[buf].buftype)
Expand All @@ -83,9 +82,14 @@ configs["base_events"] = function()
"dapui_stacks",
"dapui_watches",
"calendar",
"neo-tree",
"neo-tree-popup",
}, vim.bo[buf].filetype)
if buftype or filetype then
vim.opt_local.winbar = nil
if vim.bo[buf].filetype == "WhichKey" then
else
vim.opt_local.winbar = nil
end
end
end,
group = group,
Expand Down
3 changes: 2 additions & 1 deletion lua/modules/base/configs/ui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,6 @@ function config.heirline_nvim()
condition = function()
return heirline_conditions.buffer_matches({
buftype = {
"nofile",
"prompt",
"help",
"quickfix",
Expand All @@ -915,6 +914,8 @@ function config.heirline_nvim()
"dapui_stacks",
"dapui_watches",
"calendar",
"neo-tree",
"neo-tree-popup",
},
})
end,
Expand Down
5 changes: 2 additions & 3 deletions lua/modules/base/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ modules["elihunter173/dirbuf.nvim"] = {
config = ui_config.dirbuf_nvim,
}

modules["lvim-tech/which-key.nvim"] = {
event = "BufWinEnter",
branch = "buftype",
modules["folke/which-key.nvim"] = {
-- event = "BufWinEnter",
config = ui_config.which_key_nvim,
}

Expand Down

0 comments on commit fb08050

Please sign in to comment.