2023-10-03 10:34:04 +02:00
|
|
|
vim.o.background = "dark"
|
|
|
|
|
2023-09-06 19:23:10 +02:00
|
|
|
return {
|
2023-10-03 10:34:04 +02:00
|
|
|
{
|
|
|
|
"LazyVim/LazyVim",
|
|
|
|
opts = {
|
|
|
|
colorscheme = "lunaperche",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
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" },
|
|
|
|
InclineNormalNC = { guifg = "#e95678", guibg = "#000" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
window = {
|
|
|
|
margin = { vertical = 0, horizontal = 1 },
|
|
|
|
placement = { vertical = "bottom" },
|
|
|
|
},
|
|
|
|
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-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 = {
|
|
|
|
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
|
2023-09-29 13:28:07 +02:00
|
|
|
{
|
|
|
|
"filename",
|
|
|
|
path = 1,
|
|
|
|
separator = "",
|
|
|
|
symbols = { modified = " ", readonly = "", unnamed = "" },
|
|
|
|
},
|
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,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
-- stylua: ignore
|
|
|
|
{
|
|
|
|
function() return require("nvim-navic").get_location() end,
|
|
|
|
cond = function() return package.loaded["nvim-navic"] and require("nvim-navic").is_available() end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
lualine_x = opts.sections.lualine_x,
|
2023-09-29 13:28:07 +02:00
|
|
|
lualine_y = {
|
|
|
|
{ "fileformat", separator = "", padding = { left = 1, right = 0 } },
|
|
|
|
"encoding",
|
|
|
|
},
|
|
|
|
lualine_z = {
|
|
|
|
"progress",
|
|
|
|
{ "location", padding = { left = 0, right = 1 } },
|
|
|
|
},
|
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
|
|
|
|
|
|
|
{
|
|
|
|
"echasnovski/mini.indentscope",
|
|
|
|
opts = {
|
|
|
|
draw = {
|
|
|
|
animation = require("mini.indentscope").gen_animation.none(),
|
|
|
|
},
|
|
|
|
symbol = "┆",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"SmiteshP/nvim-navic",
|
|
|
|
opts = function(_, opts)
|
|
|
|
opts.highlight = false
|
|
|
|
end,
|
|
|
|
},
|
2023-09-06 19:23:10 +02:00
|
|
|
}
|