mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-01 16:45:07 +02:00
added formatter + reformat existing codebase (#175)
This commit is contained in:
parent
0bf4313f22
commit
264de8cefb
96 changed files with 3727 additions and 3341 deletions
|
@ -1,10 +1,13 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.plugins.barbar;
|
||||
helpers = import ../helpers.nix { inherit lib; };
|
||||
in
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.plugins.barbar;
|
||||
helpers = import ../helpers.nix {inherit lib;};
|
||||
in {
|
||||
options.plugins.barbar = {
|
||||
enable = mkEnableOption "barbar.nvim";
|
||||
|
||||
|
@ -65,24 +68,25 @@ in
|
|||
|
||||
highlightVisible = helpers.defaultNullOpts.mkBool true "Highlight visible buffers";
|
||||
|
||||
|
||||
icons = {
|
||||
enable = helpers.defaultNullOpts.mkNullable
|
||||
(with types; (either bool (enum [ "numbers" "both" ])))
|
||||
enable =
|
||||
helpers.defaultNullOpts.mkNullable
|
||||
(with types; (either bool (enum ["numbers" "both"])))
|
||||
"true"
|
||||
''
|
||||
Enable/disable icons if set to 'numbers', will show buffer index in the tabline if set to
|
||||
'both', will show buffer index and icons in the tabline
|
||||
Enable/disable icons if set to 'numbers', will show buffer index in the tabline if set to
|
||||
'both', will show buffer index and icons in the tabline
|
||||
'';
|
||||
|
||||
customColors = helpers.defaultNullOpts.mkNullable
|
||||
customColors =
|
||||
helpers.defaultNullOpts.mkNullable
|
||||
(types.either types.bool types.str)
|
||||
"false"
|
||||
''
|
||||
If set, the icon color will follow its corresponding buffer
|
||||
highlight group. By default, the Buffer*Icon group is linked to the
|
||||
Buffer* group (see Highlighting below). Otherwise, it will take its
|
||||
default value as defined by devicons.
|
||||
If set, the icon color will follow its corresponding buffer
|
||||
highlight group. By default, the Buffer*Icon group is linked to the
|
||||
Buffer* group (see Highlighting below). Otherwise, it will take its
|
||||
default value as defined by devicons.
|
||||
'';
|
||||
|
||||
separatorActive = helpers.defaultNullOpts.mkStr "▎" "Icon for the active tab separator";
|
||||
|
@ -122,7 +126,6 @@ in
|
|||
But only a static string is accepted here.
|
||||
'';
|
||||
|
||||
|
||||
# Keybinds concept:
|
||||
# keys = {
|
||||
# previousBuffer = mkBindDef "normal" "Previous buffer" { action = ":BufferPrevious<CR>"; silent = true; } "<A-,>";
|
||||
|
@ -182,16 +185,16 @@ in
|
|||
tabpages = cfg.tabpages;
|
||||
};
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
cfg.package
|
||||
nvim-web-devicons
|
||||
];
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
cfg.package
|
||||
nvim-web-devicons
|
||||
];
|
||||
|
||||
extraConfigLua = ''
|
||||
require('bufferline').setup(${helpers.toLuaObject setupOptions})
|
||||
'';
|
||||
extraConfigLua = ''
|
||||
require('bufferline').setup(${helpers.toLuaObject setupOptions})
|
||||
'';
|
||||
|
||||
# maps = genMaps cfg.keys;
|
||||
};
|
||||
# maps = genMaps cfg.keys;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue