Compare commits
No commits in common. "3e8e55e8189d0a376c2703a4263017b094ae9d66" and "dfe4cb55301742d4832a1991b84d074c63697018" have entirely different histories.
3e8e55e818
...
dfe4cb5530
@ -1,9 +1,40 @@
|
|||||||
-- pretty location at the top
|
-- pretty location at the top
|
||||||
require("barbecue").setup({
|
require("barbecue").setup({
|
||||||
|
---Whether to attach navic to language servers automatically.
|
||||||
|
---
|
||||||
|
---@type boolean
|
||||||
|
attach_navic = true,
|
||||||
|
|
||||||
|
---Whether to create winbar updater autocmd.
|
||||||
|
---
|
||||||
|
---@type boolean
|
||||||
|
create_autocmd = true,
|
||||||
|
|
||||||
|
---Buftypes to enable winbar in.
|
||||||
|
---
|
||||||
|
---@type string[]
|
||||||
|
include_buftypes = { "" },
|
||||||
|
|
||||||
---Filetypes not to enable winbar in.
|
---Filetypes not to enable winbar in.
|
||||||
---
|
---
|
||||||
---@type string[]
|
---@type string[]
|
||||||
exclude_filetypes = { "netrw", "toggleterm", "neogit" },
|
exclude_filetypes = { "netrw", "toggleterm" },
|
||||||
|
|
||||||
|
modifiers = {
|
||||||
|
---Filename modifiers applied to dirname.
|
||||||
|
---
|
||||||
|
---See: `:help filename-modifiers`
|
||||||
|
---
|
||||||
|
---@type string
|
||||||
|
dirname = ":~:.",
|
||||||
|
|
||||||
|
---Filename modifiers applied to basename.
|
||||||
|
---
|
||||||
|
---See: `:help filename-modifiers`
|
||||||
|
---
|
||||||
|
---@type string
|
||||||
|
basename = "",
|
||||||
|
},
|
||||||
|
|
||||||
---Whether to display path to file.
|
---Whether to display path to file.
|
||||||
---
|
---
|
||||||
@ -32,4 +63,96 @@ require("barbecue").setup({
|
|||||||
---
|
---
|
||||||
---@type boolean
|
---@type boolean
|
||||||
show_navic = true,
|
show_navic = true,
|
||||||
|
|
||||||
|
---Get leading custom section contents.
|
||||||
|
---
|
||||||
|
---NOTE: This function shouldn't do any expensive actions as it is run on each
|
||||||
|
---render.
|
||||||
|
---
|
||||||
|
---@type fun(bufnr: number, winnr: number): barbecue.Config.custom_section
|
||||||
|
lead_custom_section = function() return " " end,
|
||||||
|
|
||||||
|
---@alias barbecue.Config.custom_section
|
||||||
|
---|string # Literal string.
|
||||||
|
---|{ [1]: string, [2]: string? }[] # List-like table of `[text, highlight?]` tuples in which `highlight` is optional.
|
||||||
|
---
|
||||||
|
---Get custom section contents.
|
||||||
|
---
|
||||||
|
---NOTE: This function shouldn't do any expensive actions as it is run on each
|
||||||
|
---render.
|
||||||
|
---
|
||||||
|
---@type fun(bufnr: number, winnr: number): barbecue.Config.custom_section
|
||||||
|
custom_section = function() return " " end,
|
||||||
|
|
||||||
|
---@alias barbecue.Config.theme
|
||||||
|
---|'"auto"' # Use your current colorscheme's theme or generate a theme based on it.
|
||||||
|
---|string # Theme located under `barbecue.theme` module.
|
||||||
|
---|barbecue.Theme # Same as '"auto"' but override it with the given table.
|
||||||
|
---
|
||||||
|
---Theme to be used for generating highlight groups dynamically.
|
||||||
|
---
|
||||||
|
---@type barbecue.Config.theme
|
||||||
|
--theme = "auto",
|
||||||
|
|
||||||
|
theme = {
|
||||||
|
basename = { bold = false},
|
||||||
|
},
|
||||||
|
|
||||||
|
---Whether context text should follow its icon's color.
|
||||||
|
---
|
||||||
|
---@type boolean
|
||||||
|
context_follow_icon_color = false,
|
||||||
|
|
||||||
|
symbols = {
|
||||||
|
---Modification indicator.
|
||||||
|
---
|
||||||
|
---@type string
|
||||||
|
modified = "●",
|
||||||
|
|
||||||
|
---Truncation indicator.
|
||||||
|
---
|
||||||
|
---@type string
|
||||||
|
ellipsis = "…",
|
||||||
|
|
||||||
|
---Entry separator.
|
||||||
|
---
|
||||||
|
---@type string
|
||||||
|
separator = "",
|
||||||
|
},
|
||||||
|
|
||||||
|
---@alias barbecue.Config.kinds
|
||||||
|
---|false # Disable kind icons.
|
||||||
|
---|table<string, string> # Type to icon mapping.
|
||||||
|
---
|
||||||
|
---Icons for different context entry kinds.
|
||||||
|
---
|
||||||
|
---@type barbecue.Config.kinds
|
||||||
|
kinds = {
|
||||||
|
File = "",
|
||||||
|
Module = "",
|
||||||
|
Namespace = "",
|
||||||
|
Package = "",
|
||||||
|
Class = "",
|
||||||
|
Method = "",
|
||||||
|
Property = "",
|
||||||
|
Field = "",
|
||||||
|
Constructor = "",
|
||||||
|
Enum = "",
|
||||||
|
Interface = "",
|
||||||
|
Function = "",
|
||||||
|
Variable = "",
|
||||||
|
Constant = "",
|
||||||
|
String = "",
|
||||||
|
Number = "",
|
||||||
|
Boolean = "",
|
||||||
|
Array = "",
|
||||||
|
Object = "",
|
||||||
|
Key = "",
|
||||||
|
Null = "",
|
||||||
|
EnumMember = "",
|
||||||
|
Struct = "",
|
||||||
|
Event = "",
|
||||||
|
Operator = "",
|
||||||
|
TypeParameter = "",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
@ -64,8 +64,6 @@ return require('packer').startup(function(use)
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
use { "lukas-reineke/indent-blankline.nvim" }
|
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"utilyre/barbecue.nvim", tag = "*",
|
"utilyre/barbecue.nvim", tag = "*",
|
||||||
requires = {
|
requires = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
vim.opt.nu = true
|
vim.opt.nu = true
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
vim.opt.ignorecase = true
|
|
||||||
|
|
||||||
vim.opt.tabstop = 4
|
vim.opt.tabstop = 4
|
||||||
vim.opt.softtabstop = 4
|
vim.opt.softtabstop = 4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user