105 lines
2.6 KiB
Lua
105 lines
2.6 KiB
Lua
vim.o.background = "dark"
|
|
|
|
return {
|
|
{
|
|
"LazyVim/LazyVim",
|
|
opts = {
|
|
colorscheme = "lunaperche",
|
|
},
|
|
},
|
|
|
|
{
|
|
"lukas-reineke/indent-blankline.nvim",
|
|
enabled = false,
|
|
},
|
|
|
|
{
|
|
"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,
|
|
},
|
|
|
|
{
|
|
"nvim-lualine/lualine.nvim",
|
|
opts = function(_, opts)
|
|
local icons = require("lazyvim.config").icons
|
|
|
|
opts.options.theme = "horizon"
|
|
|
|
opts.sections = {
|
|
lualine_a = { "mode" },
|
|
lualine_b = {
|
|
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
|
|
{
|
|
"filename",
|
|
path = 1,
|
|
separator = "",
|
|
symbols = { modified = " ", readonly = "", unnamed = "" },
|
|
},
|
|
},
|
|
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,
|
|
lualine_y = {
|
|
{ "fileformat", separator = "", padding = { left = 1, right = 0 } },
|
|
"encoding",
|
|
},
|
|
lualine_z = {
|
|
"progress",
|
|
{ "location", padding = { left = 0, right = 1 } },
|
|
},
|
|
}
|
|
end,
|
|
},
|
|
|
|
{
|
|
"echasnovski/mini.indentscope",
|
|
opts = {
|
|
draw = {
|
|
animation = require("mini.indentscope").gen_animation.none(),
|
|
},
|
|
symbol = "┆",
|
|
},
|
|
},
|
|
|
|
{
|
|
"SmiteshP/nvim-navic",
|
|
opts = function(_, opts)
|
|
opts.highlight = false
|
|
end,
|
|
},
|
|
}
|