LazyVim/lua/plugins/UI.lua

85 lines
2.1 KiB
Lua
Raw Normal View History

2023-10-03 10:34:04 +02:00
vim.o.background = "dark"
local Util = require("lazyvim.util")
return {
2023-10-03 10:34:04 +02:00
{
"LazyVim/LazyVim",
opts = {
2023-10-17 17:46:44 +02:00
colorscheme = "moonfly",
2023-10-03 10:34:04 +02:00
},
},
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,
},
{
"nvim-lualine/lualine.nvim",
opts = function(_, opts)
local icons = require("lazyvim.config").icons
2023-09-29 13:28:07 +02:00
opts.options.theme = "horizon"
opts.sections = {
lualine_a = { "mode" },
lualine_b = {
Util.lualine.root_dir({ color = { fg = "#bf7b00" } }),
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
{ Util.lualine.pretty_path() },
},
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,
lualine_z = opts.sections.lualine_y,
2023-09-29 13:28:07 +02:00
lualine_y = {
{ "fileformat", separator = "", padding = { left = 1, right = 0 } },
"encoding",
},
}
end,
},
2023-10-03 14:53:25 +02:00
{
"echasnovski/mini.indentscope",
opts = {
draw = {
animation = require("mini.indentscope").gen_animation.none(),
},
symbol = "",
},
},
2023-10-17 17:46:44 +02:00
{ "bluz71/vim-moonfly-colors" },
}