feat: readd bufferline

This commit is contained in:
isabel 2025-01-21 10:51:52 +00:00
parent 70a30ac354
commit cf386df874
No known key found for this signature in database
GPG key ID: 08A97B9A107A1798
4 changed files with 66 additions and 0 deletions

View file

@ -19,6 +19,26 @@
},
"version": "de72250e054e5e691b9736ee30db72c65d560771"
},
"bufferline": {
"cargoLocks": null,
"date": "2025-01-14",
"extract": null,
"name": "bufferline",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "akinsho",
"repo": "bufferline.nvim",
"rev": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3",
"sha256": "sha256-ae4MB6+6v3awvfSUWlau9ASJ147ZpwuX1fvJdfMwo1Q=",
"type": "github"
},
"version": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3"
},
"catppuccin": {
"cargoLocks": null,
"date": "2024-12-27",

12
_sources/generated.nix generated
View file

@ -13,6 +13,18 @@
};
date = "2024-11-14";
};
bufferline = {
pname = "bufferline";
version = "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3";
src = fetchFromGitHub {
owner = "akinsho";
repo = "bufferline.nvim";
rev = "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3";
fetchSubmodules = false;
sha256 = "sha256-ae4MB6+6v3awvfSUWlau9ASJ147ZpwuX1fvJdfMwo1Q=";
};
date = "2025-01-14";
};
catppuccin = {
pname = "catppuccin";
version = "f67b886d65a029f12ffa298701fb8f1efd89295d";

View file

@ -0,0 +1,30 @@
return {
{
"bufferline.nvim",
event = "DeferredUIEnter",
after = function()
local bufferline = require("bufferline")
local ctp = require("catppuccin.groups.integrations.bufferline").get()
bufferline.setup({
highlights = ctp,
options = {
show_close_icon = false,
show_buffer_close_icons = false,
offsets = {
{
filetype = "NvimTree",
text = "File Browser",
text_align = "left",
separator = vim.g.bc.vert,
},
},
left_mouse_command = "buffer %d",
middle_mouse_command = "bdelete! %d",
right_mouse_command = nil,
numbers = "ordinal",
},
})
end,
},
}

View file

@ -2,6 +2,10 @@
fetch.github = "goolord/alpha-nvim"
src.git = "https://github.com/goolord/alpha-nvim"
[bufferline]
fetch.github = "akinsho/bufferline.nvim"
src.git = "https://github.com/akinsho/bufferline.nvim"
[catppuccin]
fetch.github = "catppuccin/nvim"
src.git = "https://github.com/catppuccin/nvim"