Dotfiles/.config/nvim/lua/plugins/status_bar.lua
2024-06-02 19:22:09 +02:00

79 lines
2.7 KiB
Lua

return {
{
"nvim-lualine/lualine.nvim",
dependencies = {
"nvim-tree/nvim-web-devicons",
"nvimdev/lspsaga.nvim",
},
after = "rcarriga/nvim-dap-ui",
config = function()
-- Setup --
local lspsaga_breadcrumbs = require("lspsaga.symbol.winbar").get_bar
require("lualine").setup({
options = {
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" },
disabled_filetypes = {
"neo-tree",
"fugitive",
"help",
statusline = {
"dap-repl",
"dapui_console",
"dapui_console",
"dapui_watches",
"dapui_stacks",
"dapui_breakpoints",
"dapui_scopes",
},
},
ignore_focus = {},
always_divide_middle = true,
globalstatus = false,
refresh = {
statusline = 1000,
tabline = 1000,
winbar = 1000,
},
},
sections = {
lualine_a = { "mode" },
lualine_b = { "diagnostics" },
lualine_c = { lspsaga_breadcrumbs },
lualine_x = { "location" },
lualine_y = { "diff", "branch" },
lualine_z = { "filetype" },
},
inactive_sections = {
lualine_a = { "mode" },
lualine_b = { "diagnostics" },
lualine_c = {},
lualine_x = { "location" },
lualine_y = { "diff", "branch" },
lualine_z = { "filetype" },
},
tabline = {},
winbar = {
lualine_a = { "filename" },
},
inactive_winbar = {
lualine_a = { "filename" },
},
extensions = {
require("plugins.extension.status_bar_plugin"),
},
})
end,
},
{
"romgrk/barbar.nvim",
dependencies = {
"lewis6991/gitsigns.nvim",
"nvim-tree/nvim-web-devicons",
},
config = function()
require("barbar").setup()
end,
},
}