add: buffline to know the filenames

This commit is contained in:
pika 2025-03-22 03:06:11 +01:00
parent afb29d916c
commit 69e7706b49

View file

@ -2,55 +2,55 @@ return {
-- ╭───────────────────────────────────────╮ -- ╭───────────────────────────────────────╮
-- │ bufferline - for mistakes and stuff.. │ -- │ bufferline - for mistakes and stuff.. │
-- ╰───────────────────────────────────────╯ -- ╰───────────────────────────────────────╯
-- { {
-- "akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
-- dependencies = { "echasnovski/mini.icons" }, dependencies = { "echasnovski/mini.icons" },
-- version = "*", version = "*",
-- opts = { opts = {
-- options = { options = {
-- diagnostics = "nvim_lsp", diagnostics = "nvim_lsp",
-- diagnostics_update_on_event = true, -- use nvim's diagnostic handler diagnostics_update_on_event = true, -- use nvim's diagnostic handler
-- diagnostics_indicator = function(count, level) diagnostics_indicator = function(count, level)
-- local icon = level:match("error") and " " or " " local icon = level:match("error") and "" or ""
-- return " " .. icon .. count return " " .. icon .. count
-- end, end,
-- offsets = { { filetype = "neo-tree", text = "File Explorer", highlight = "Directory" } }, offsets = { { filetype = "neo-tree", text = "File Explorer", highlight = "Directory" } },
-- -- ─< style >─────────────────────────────────────────────────────────────────────────── -- ─< style >───────────────────────────────────────────────────────────────────────────
-- indicator = { indicator = {
-- icon = "▎", -- this should be omitted if indicator style is not 'icon' icon = "", -- this should be omitted if indicator style is not 'icon'
-- style = "icon", style = "icon",
-- }, },
-- move_wraps_at_ends = true, -- whether or not the move command "wraps" at the first or last position move_wraps_at_ends = true, -- whether or not the move command "wraps" at the first or last position
-- separator_style = "slope", separator_style = "slope",
-- -- ─< icons >─────────────────────────────────────────────────────────────────────────── -- ─< icons >───────────────────────────────────────────────────────────────────────────
-- modified_icon = "󱞇", modified_icon = "󱞇",
-- left_trunc_marker = "󰬩", left_trunc_marker = "󰬩",
-- right_trunc_marker = "󰬫", right_trunc_marker = "󰬫",
-- themable = true, -- allows highlight groups to be overriden i.e. sets highlights as default themable = true, -- allows highlight groups to be overriden i.e. sets highlights as default
-- close_icon = "󱄊", close_icon = "󱄊",
-- buffer_close_icon = "󱄊", buffer_close_icon = "󱄊",
-- show_buffer_icons = true, -- disable filetype icons for buffers show_buffer_icons = true, -- disable filetype icons for buffers
-- show_buffer_close_icons = true, show_buffer_close_icons = true,
-- show_close_icon = true, show_close_icon = true,
-- show_tab_indicators = true, show_tab_indicators = true,
-- hover = { hover = {
-- enabled = true, enabled = true,
-- delay = 80, delay = 80,
-- reveal = { "close" }, reveal = { "close" },
-- hide = { "nvim_lsp" }, hide = { "nvim_lsp" },
-- }, },
-- -- You can set buffer_mode to "list" or "tabbed" based on your preference. -- You can set buffer_mode to "list" or "tabbed" based on your preference.
-- buffer_mode = "list", buffer_mode = "list",
-- color_icons = true, -- whether or not to add the filetype icon highlights color_icons = true, -- whether or not to add the filetype icon highlights
-- }, },
-- }, },
-- config = function(_, opts) config = function(_, opts)
-- require("bufferline").setup(opts) require("bufferline").setup(opts)
-- -- Remap the tab key for buffer navigation (you can adjust the keys as needed) -- Remap the tab key for buffer navigation (you can adjust the keys as needed)
-- vim.keymap.set("n", "<Tab>", "<cmd>BufferLineCycleNext<CR>") vim.keymap.set("n", "<Tab>", "<cmd>BufferLineCycleNext<CR>")
-- vim.keymap.set("n", "<S-Tab>", "<cmd>BufferLineCyclePrev<CR>") vim.keymap.set("n", "<S-Tab>", "<cmd>BufferLineCyclePrev<CR>")
-- end, end,
-- }, },
-- ╭───────────────────────────────────╮ -- ╭───────────────────────────────────╮
-- │ cmdline - for nice command inputs │ -- │ cmdline - for nice command inputs │