mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +00:00
Merge pull request #1122 from NotAShelf/notashelf/push-sknqmuqzlnwn
meta: bump plugins; fix bufferline
This commit is contained in:
commit
aa5b1913e3
3 changed files with 38 additions and 23 deletions
|
@ -15,7 +15,7 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = [
|
startPlugins = [
|
||||||
"nvim-bufferline-lua"
|
"bufferline-nvim"
|
||||||
"bufdelete-nvim"
|
"bufdelete-nvim"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption literalExpression;
|
inherit (lib.options) mkOption mkEnableOption literalExpression literalMD;
|
||||||
inherit (lib.types) enum bool either nullOr str int listOf attrs;
|
inherit (lib.types) enum bool either nullOr str int listOf attrs;
|
||||||
inherit (lib.generators) mkLuaInline;
|
inherit (lib.generators) mkLuaInline;
|
||||||
inherit (lib.nvim.binds) mkMappingOption;
|
inherit (lib.nvim.binds) mkMappingOption;
|
||||||
|
@ -24,17 +24,28 @@ in {
|
||||||
movePrevious = mkMappingOption "Move previous buffer" "<leader>bmp";
|
movePrevious = mkMappingOption "Move previous buffer" "<leader>bmp";
|
||||||
};
|
};
|
||||||
|
|
||||||
setupOpts = mkPluginSetupOption "Bufferline-nvim" {
|
setupOpts = mkPluginSetupOption "bufferline-nvim" {
|
||||||
highlights = mkOption {
|
highlights = mkOption {
|
||||||
type = either attrs luaInline;
|
type = either attrs luaInline;
|
||||||
default =
|
default =
|
||||||
if config.vim.theme.enable && config.vim.theme.name == "catppuccin"
|
if config.vim.theme.enable && config.vim.theme.name == "catppuccin"
|
||||||
then
|
then
|
||||||
mkLuaInline
|
mkLuaInline ''
|
||||||
''
|
(function()
|
||||||
require("catppuccin.groups.integrations.bufferline").get()
|
local integration = require("catppuccin.groups.integrations.bufferline")
|
||||||
|
return (integration.get_theme or integration.get)()
|
||||||
|
end)()
|
||||||
''
|
''
|
||||||
else {};
|
else {};
|
||||||
|
defaultText = literalMD ''
|
||||||
|
```lua
|
||||||
|
(function()
|
||||||
|
local integration = require("catppuccin.groups.integrations.bufferline")
|
||||||
|
return (integration.get_theme or integration.get)()
|
||||||
|
end)()
|
||||||
|
```
|
||||||
|
if the active theme is Catppuccin, `{}` otherwise.
|
||||||
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
Overrides the highlight groups of bufferline.
|
Overrides the highlight groups of bufferline.
|
||||||
|
|
||||||
|
@ -59,10 +70,11 @@ in {
|
||||||
themable = mkOption {
|
themable = mkOption {
|
||||||
type = bool;
|
type = bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
example = false;
|
||||||
description = ''
|
description = ''
|
||||||
Whether or not to allow highlight groups to be overridden.
|
Whether or not to allow highlight groups to be overridden.
|
||||||
|
|
||||||
While false, bufferline.nvim sets highlights as default.
|
While `false`, bufferline.nvim sets highlights as default.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -35,9 +35,9 @@
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "ff116a567346003d37e19d05aa514972b53b574e",
|
"revision": "bcbe0347d8b5542b8a3361af8506f6dcf5bca02e",
|
||||||
"url": "https://github.com/yetone/avante.nvim/archive/ff116a567346003d37e19d05aa514972b53b574e.tar.gz",
|
"url": "https://github.com/yetone/avante.nvim/archive/bcbe0347d8b5542b8a3361af8506f6dcf5bca02e.tar.gz",
|
||||||
"hash": "1fipz3c5gdbjnih366h20ppg7q6x7xqj5jlnadsqm5z28vj3kfr1"
|
"hash": "1h7v40i3a7471ss5115my3n62gr4ldicmdc6vr4aaahjbghrri4v"
|
||||||
},
|
},
|
||||||
"base16": {
|
"base16": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -117,6 +117,22 @@
|
||||||
"url": "https://github.com/famiu/bufdelete.nvim/archive/f6bcea78afb3060b198125256f897040538bcb81.tar.gz",
|
"url": "https://github.com/famiu/bufdelete.nvim/archive/f6bcea78afb3060b198125256f897040538bcb81.tar.gz",
|
||||||
"hash": "0xfzk3zgnxbwnr55n3lglsb8nmhnchpiqz9d152xr6j8d9z0sdcn"
|
"hash": "0xfzk3zgnxbwnr55n3lglsb8nmhnchpiqz9d152xr6j8d9z0sdcn"
|
||||||
},
|
},
|
||||||
|
"bufferline-nvim": {
|
||||||
|
"type": "GitRelease",
|
||||||
|
"repository": {
|
||||||
|
"type": "GitHub",
|
||||||
|
"owner": "akinsho",
|
||||||
|
"repo": "bufferline.nvim"
|
||||||
|
},
|
||||||
|
"pre_releases": false,
|
||||||
|
"version_upper_bound": null,
|
||||||
|
"release_prefix": null,
|
||||||
|
"submodules": false,
|
||||||
|
"version": "v4.9.1",
|
||||||
|
"revision": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3",
|
||||||
|
"url": "https://api.github.com/repos/akinsho/bufferline.nvim/tarball/v4.9.1",
|
||||||
|
"hash": "0m5363rpbjgvsnbhp9yrivbqj17lmrb5m57lpnq7dgxsmw3hrvk9"
|
||||||
|
},
|
||||||
"catppuccin": {
|
"catppuccin": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -1734,19 +1750,6 @@
|
||||||
"url": "https://github.com/code-biscuits/nvim-biscuits/archive/ff1d12c8b47cd28723da593b2cfa2e98391d439a.tar.gz",
|
"url": "https://github.com/code-biscuits/nvim-biscuits/archive/ff1d12c8b47cd28723da593b2cfa2e98391d439a.tar.gz",
|
||||||
"hash": "18dvvg32nxrdp1ydbvxrzkdg7q214naq2bphs7y1s9zmjhyj25pm"
|
"hash": "18dvvg32nxrdp1ydbvxrzkdg7q214naq2bphs7y1s9zmjhyj25pm"
|
||||||
},
|
},
|
||||||
"nvim-bufferline-lua": {
|
|
||||||
"type": "Git",
|
|
||||||
"repository": {
|
|
||||||
"type": "GitHub",
|
|
||||||
"owner": "akinsho",
|
|
||||||
"repo": "nvim-bufferline.lua"
|
|
||||||
},
|
|
||||||
"branch": "main",
|
|
||||||
"submodules": false,
|
|
||||||
"revision": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3",
|
|
||||||
"url": "https://github.com/akinsho/nvim-bufferline.lua/archive/655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3.tar.gz",
|
|
||||||
"hash": "0m5363rpbjgvsnbhp9yrivbqj17lmrb5m57lpnq7dgxsmw3hrvk9"
|
|
||||||
},
|
|
||||||
"nvim-cmp": {
|
"nvim-cmp": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue