mirror of
https://codeberg.org/JasterV/dotfiles.git
synced 2026-04-26 18:40:04 +00:00
107 lines
3.3 KiB
Lua
107 lines
3.3 KiB
Lua
return {
|
|
-- messages, cmdline and the popupmenu
|
|
{
|
|
"folke/noice.nvim",
|
|
opts = function(_, opts)
|
|
table.insert(opts.routes, {
|
|
filter = {
|
|
event = "notify",
|
|
find = "No information available",
|
|
},
|
|
opts = { skip = true },
|
|
})
|
|
|
|
opts.presets.lsp_doc_border = true
|
|
end,
|
|
},
|
|
{
|
|
"rcarriga/nvim-notify",
|
|
opts = {
|
|
timeout = 5000,
|
|
},
|
|
},
|
|
-- filename
|
|
{
|
|
"b0o/incline.nvim",
|
|
dependencies = { "craftzdog/solarized-osaka.nvim" },
|
|
event = "BufReadPre",
|
|
priority = 1200,
|
|
config = function()
|
|
local colors = require("solarized-osaka.colors").setup()
|
|
require("incline").setup({
|
|
highlight = {
|
|
groups = {
|
|
InclineNormal = { guibg = colors.magenta500, guifg = colors.base04 },
|
|
InclineNormalNC = { guifg = colors.violet500, guibg = colors.base03 },
|
|
},
|
|
},
|
|
window = { margin = { vertical = 0, horizontal = 1 } },
|
|
hide = {
|
|
cursorline = true,
|
|
},
|
|
render = function(props)
|
|
local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ":t")
|
|
if vim.bo[props.buf].modified then
|
|
filename = "[+] " .. filename
|
|
end
|
|
|
|
local icon, color = require("nvim-web-devicons").get_icon_color(filename)
|
|
return { { icon, guifg = color }, { " " }, { filename } }
|
|
end,
|
|
})
|
|
end,
|
|
},
|
|
-- buffer line
|
|
{
|
|
"akinsho/bufferline.nvim",
|
|
event = "VeryLazy",
|
|
keys = {
|
|
{ "<Tab>", "<Cmd>BufferLineCycleNext<CR>", desc = "Next tab" },
|
|
{ "<S-Tab>", "<Cmd>BufferLineCyclePrev<CR>", desc = "Prev tab" },
|
|
-- Disable pinning keymaps as they don't work on tab mode
|
|
{ "<leader>bp", false },
|
|
{ "<leader>bP", false },
|
|
},
|
|
opts = {
|
|
options = {
|
|
mode = "tabs",
|
|
-- separator_style = "slant",
|
|
show_buffer_close_icons = false,
|
|
show_close_icon = false,
|
|
},
|
|
},
|
|
},
|
|
|
|
-- statusline
|
|
{
|
|
"nvim-lualine/lualine.nvim",
|
|
event = "VeryLazy",
|
|
opts = {
|
|
options = {
|
|
-- globalstatus = false,
|
|
theme = "solarized_dark",
|
|
},
|
|
},
|
|
},
|
|
|
|
-- Dashboard
|
|
{
|
|
"nvimdev/dashboard-nvim",
|
|
event = "VimEnter",
|
|
opts = function(_, opts)
|
|
local logo = [[
|
|
|
|
██╗ █████╗ ███████╗████████╗███████╗██████╗ ██╗ ██╗
|
|
██║██╔══██╗██╔════╝╚══██╔══╝██╔════╝██╔══██╗██║ ██║
|
|
██║███████║███████╗ ██║ █████╗ ██████╔╝██║ ██║
|
|
██ ██║██╔══██║╚════██║ ██║ ██╔══╝ ██╔══██╗╚██╗ ██╔╝
|
|
╚█████╔╝██║ ██║███████║ ██║ ███████╗██║ ██║ ╚████╔╝
|
|
╚════╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═══╝
|
|
|
|
]]
|
|
|
|
logo = string.rep("\n", 8) .. logo .. "\n\n"
|
|
opts.config.header = vim.split(logo, "\n")
|
|
end,
|
|
},
|
|
}
|