mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
49 lines
1.2 KiB
Lua
Executable file
49 lines
1.2 KiB
Lua
Executable file
return {
|
|
-- messages, cmdline and the popupmenu
|
|
{
|
|
"folke/noice.nvim",
|
|
config = function()
|
|
require("noice").setup({
|
|
cmdline = {
|
|
view = "cmdline",
|
|
},
|
|
presets = {
|
|
bottom_search = true,
|
|
command_palette = true,
|
|
lsp_doc_border = true,
|
|
},
|
|
-- views = {
|
|
-- cmdline_popup = {
|
|
-- filter_options = {},
|
|
-- win_options = {
|
|
-- winhighlight = "NormalFloat:NormalFloat,FloatBorder:FloatBorder",
|
|
-- },
|
|
-- },
|
|
-- },
|
|
})
|
|
end,
|
|
},
|
|
-- filename
|
|
{
|
|
"b0o/incline.nvim",
|
|
event = "BufReadPre",
|
|
priority = 1200,
|
|
config = function()
|
|
require("incline").setup({
|
|
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,
|
|
},
|
|
}
|