feat(UI): add incline
module
This commit is contained in:
parent
99ef428217
commit
a7cbaa33d8
@ -8,6 +8,31 @@ return {
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"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)
|
||||
|
Loading…
Reference in New Issue
Block a user