Compare commits
	
		
			3 Commits
		
	
	
		
			dfe4cb5530
			...
			3e8e55e818
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					3e8e55e818 | ||
| 
						 | 
					4919f21455 | ||
| 
						 | 
					5bb05ba08c | 
@@ -1,40 +1,9 @@
 | 
				
			|||||||
-- 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" },
 | 
					    exclude_filetypes = { "netrw", "toggleterm", "neogit" },
 | 
				
			||||||
 | 
					 | 
				
			||||||
    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.
 | 
				
			||||||
    ---
 | 
					    ---
 | 
				
			||||||
@@ -63,96 +32,4 @@ 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 = "",
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -43,4 +43,4 @@ neogit.setup {
 | 
				
			|||||||
    popup = {
 | 
					    popup = {
 | 
				
			||||||
        kind = "split",
 | 
					        kind = "split",
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
        }
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -64,6 +64,8 @@ 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,5 +1,6 @@
 | 
				
			|||||||
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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user