Compare commits

...

2 Commits

Author SHA1 Message Date
Michel a7cbaa33d8 feat(UI): add `incline` module 2023-10-03 15:07:24 +02:00
Michel 99ef428217 refactor: UI modules order 2023-10-03 14:53:47 +02:00
1 changed files with 40 additions and 13 deletions

View File

@ -9,19 +9,27 @@ return {
},
{
"echasnovski/mini.indentscope",
opts = {
draw = {
animation = require("mini.indentscope").gen_animation.none(),
},
symbol = "",
},
},
{
"SmiteshP/nvim-navic",
opts = function(_, opts)
opts.highlight = 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,
},
@ -71,4 +79,23 @@ return {
}
end,
},
{
"echasnovski/mini.indentscope",
opts = {
draw = {
animation = require("mini.indentscope").gen_animation.none(),
},
symbol = "",
},
},
{
"SmiteshP/nvim-navic",
opts = function(_, opts)
opts.highlight = false
end,
},
}
-- vim: fdm=indent fdl=2