2023-10-16 10:47:00 +02:00
|
|
|
local Util = require("lazyvim.util")
|
|
|
|
|
2023-09-06 19:23:10 +02:00
|
|
|
return {
|
2024-01-02 10:39:33 +01:00
|
|
|
{
|
|
|
|
"akinsho/bufferline.nvim",
|
|
|
|
opts = { options = { always_show_bufferline = true } },
|
|
|
|
},
|
|
|
|
|
2023-10-03 15:07:24 +02:00
|
|
|
{
|
|
|
|
"b0o/incline.nvim",
|
|
|
|
event = "BufReadPre",
|
|
|
|
enabled = true,
|
|
|
|
config = function()
|
|
|
|
require("incline").setup({
|
|
|
|
highlight = {
|
|
|
|
groups = {
|
|
|
|
InclineNormal = { guibg = "#742b3c", guifg = "#000" },
|
2023-10-10 17:30:55 +02:00
|
|
|
InclineNormalNC = { guifg = "#e95678", guibg = "#303030" },
|
2023-10-03 15:07:24 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
window = {
|
2023-10-10 17:30:55 +02:00
|
|
|
margin = { vertical = 0, horizontal = 0 },
|
|
|
|
placement = { vertical = "bottom", horizontal = "left" },
|
2023-10-03 15:07:24 +02:00
|
|
|
},
|
|
|
|
render = function(props)
|
|
|
|
local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ":t")
|
|
|
|
local icon, color = require("nvim-web-devicons").get_icon_color(filename)
|
|
|
|
return { { icon, guifg = color }, { " " }, { filename } }
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
2023-09-06 19:23:10 +02:00
|
|
|
{
|
|
|
|
"nvim-lualine/lualine.nvim",
|
|
|
|
opts = function(_, opts)
|
2023-09-19 11:27:24 +02:00
|
|
|
local icons = require("lazyvim.config").icons
|
2023-10-27 19:27:37 +02:00
|
|
|
local warning_col = { fg = "#bf7b00" }
|
2023-09-19 11:27:24 +02:00
|
|
|
|
2023-09-29 13:28:07 +02:00
|
|
|
opts.options.theme = "horizon"
|
2023-09-19 11:27:24 +02:00
|
|
|
|
|
|
|
opts.sections = {
|
|
|
|
lualine_a = { "mode" },
|
|
|
|
lualine_b = {
|
2023-10-27 19:27:37 +02:00
|
|
|
-- Show "root dir" of current file when different from CWD
|
|
|
|
Util.lualine.root_dir({ color = warning_col }),
|
2023-09-19 11:27:24 +02:00
|
|
|
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
|
2023-10-16 10:47:00 +02:00
|
|
|
{ Util.lualine.pretty_path() },
|
2023-09-19 11:27:24 +02:00
|
|
|
},
|
|
|
|
lualine_c = {
|
|
|
|
{
|
|
|
|
"diagnostics",
|
|
|
|
symbols = {
|
|
|
|
error = icons.diagnostics.Error,
|
|
|
|
warn = icons.diagnostics.Warn,
|
|
|
|
info = icons.diagnostics.Info,
|
|
|
|
hint = icons.diagnostics.Hint,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
lualine_x = opts.sections.lualine_x,
|
2023-10-16 10:47:00 +02:00
|
|
|
lualine_z = opts.sections.lualine_y,
|
2023-09-29 13:28:07 +02:00
|
|
|
lualine_y = {
|
2023-10-27 19:27:37 +02:00
|
|
|
{
|
|
|
|
"fileformat",
|
|
|
|
color = function()
|
|
|
|
return (vim.bo.fileformat ~= "unix") and warning_col or nil
|
|
|
|
end,
|
|
|
|
separator = "",
|
|
|
|
padding = { left = 1, right = 0 },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
function()
|
|
|
|
return vim.o.fileencoding
|
|
|
|
end,
|
|
|
|
color = function()
|
|
|
|
return (vim.o.fileencoding ~= "utf-8") and warning_col or nil
|
|
|
|
end,
|
|
|
|
},
|
2023-09-29 13:28:07 +02:00
|
|
|
},
|
2023-09-19 11:27:24 +02:00
|
|
|
}
|
2023-09-06 19:23:10 +02:00
|
|
|
end,
|
|
|
|
},
|
2023-10-03 14:53:25 +02:00
|
|
|
|
2023-11-09 11:25:36 +01:00
|
|
|
{
|
|
|
|
"folke/noice.nvim",
|
|
|
|
opts = {
|
|
|
|
views = {
|
|
|
|
cmdline_popup = {
|
|
|
|
border = { style = "rounded" },
|
|
|
|
position = { col = "50%", row = "80%" },
|
|
|
|
size = { width = "60%" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-09-06 19:23:10 +02:00
|
|
|
}
|