mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/startup: migrate to mkNeovimPlugin
Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
parent
250447e138
commit
e2823e7309
3 changed files with 174 additions and 409 deletions
|
|
@ -1,257 +1,19 @@
|
||||||
{
|
{ lib, ... }:
|
||||||
lib,
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
helpers,
|
name = "startup";
|
||||||
config,
|
package = "startup-nvim";
|
||||||
pkgs,
|
description = "A highly configurable Neovim startup screen.";
|
||||||
...
|
maintainers = [ ];
|
||||||
}:
|
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
cfg = config.plugins.startup;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
meta.maintainers = [ maintainers.GaetanLepage ];
|
|
||||||
|
|
||||||
options.plugins.startup = lib.nixvim.plugins.neovim.extraOptionsOptions // {
|
# Plugin uses 2 functions to setup...
|
||||||
enable = mkEnableOption "startup.nvim";
|
callSetup = false;
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "startup.nvim" {
|
# TODO: introduced 2025-10-17: remove after 26.05
|
||||||
default = [
|
inherit (import ./deprecations.nix lib) deprecateExtraOptions optionsRenamedToSettings imports;
|
||||||
"vimPlugins"
|
|
||||||
"startup-nvim"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
theme = helpers.defaultNullOpts.mkStr "dashboard" ''
|
extraOptions = {
|
||||||
Use a pre-defined theme.
|
userMappings = lib.mkOption {
|
||||||
'';
|
type = with lib.types; attrsOf str;
|
||||||
|
|
||||||
sections =
|
|
||||||
let
|
|
||||||
sectionType =
|
|
||||||
with types;
|
|
||||||
submodule {
|
|
||||||
options = {
|
|
||||||
type =
|
|
||||||
helpers.defaultNullOpts.mkEnumFirstDefault
|
|
||||||
[
|
|
||||||
"text"
|
|
||||||
"mapping"
|
|
||||||
"oldfiles"
|
|
||||||
]
|
|
||||||
''
|
|
||||||
- "text" -> text that will be displayed
|
|
||||||
- "mapping" -> create mappings for commands that can be used.
|
|
||||||
use `mappings.executeCommand` on the commands to execute.
|
|
||||||
- "oldfiles" -> display oldfiles (can be opened with `mappings.openFile`/`openFileSplit`)
|
|
||||||
'';
|
|
||||||
|
|
||||||
oldfilesDirectory = helpers.defaultNullOpts.mkBool false ''
|
|
||||||
if the oldfiles of the current directory should be displayed.
|
|
||||||
'';
|
|
||||||
|
|
||||||
align =
|
|
||||||
helpers.defaultNullOpts.mkEnumFirstDefault
|
|
||||||
[
|
|
||||||
"center"
|
|
||||||
"left"
|
|
||||||
"right"
|
|
||||||
]
|
|
||||||
''
|
|
||||||
How to align the section.
|
|
||||||
'';
|
|
||||||
|
|
||||||
foldSection = helpers.defaultNullOpts.mkBool false ''
|
|
||||||
Whether to fold or not.
|
|
||||||
'';
|
|
||||||
|
|
||||||
title = helpers.defaultNullOpts.mkStr "title" ''
|
|
||||||
Title for the folded section.
|
|
||||||
'';
|
|
||||||
|
|
||||||
margin =
|
|
||||||
helpers.defaultNullOpts.mkNullable (with types; either (numbers.between 0.0 1.0) ints.positive) 5
|
|
||||||
''
|
|
||||||
The margin for left or right alignment.
|
|
||||||
- if < 1 fraction of screen width
|
|
||||||
- if > 1 numbers of column
|
|
||||||
'';
|
|
||||||
|
|
||||||
content =
|
|
||||||
helpers.mkNullOrOption
|
|
||||||
(
|
|
||||||
with types;
|
|
||||||
oneOf [
|
|
||||||
# for "text" "mapping"
|
|
||||||
(listOf (either str (listOf str)))
|
|
||||||
rawLua
|
|
||||||
# for "oldfiles" sections
|
|
||||||
(enum [ "" ])
|
|
||||||
]
|
|
||||||
)
|
|
||||||
''
|
|
||||||
The type of `content` depends on the section `type`:
|
|
||||||
- "text" -> a list of strings or a function (`rawLua`) that requires a function that returns a table of strings
|
|
||||||
- "mapping" -> a list of list of strings in the format:
|
|
||||||
```nix
|
|
||||||
[
|
|
||||||
[<displayed_command_name> <command> <mapping>]
|
|
||||||
[<displayed_command_name> <command> <mapping>]
|
|
||||||
]
|
|
||||||
```
|
|
||||||
Example: `[" Find File" "Telescope find_files" "<leader>ff"]`
|
|
||||||
- "oldfiles" -> `""`
|
|
||||||
'';
|
|
||||||
|
|
||||||
highlight = helpers.mkNullOrOption types.str ''
|
|
||||||
Highlight group in which the section text should be highlighted.
|
|
||||||
'';
|
|
||||||
|
|
||||||
defaultColor = helpers.defaultNullOpts.mkStr "#FF0000" ''
|
|
||||||
A hex color that gets used if you don't specify `highlight`.
|
|
||||||
'';
|
|
||||||
|
|
||||||
oldfilesAmount = helpers.defaultNullOpts.mkUnsignedInt 5 ''
|
|
||||||
The amount of oldfiles to be displayed.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
mkOption {
|
|
||||||
type = with types; attrsOf sectionType;
|
|
||||||
default = { };
|
|
||||||
description = '''';
|
|
||||||
example = {
|
|
||||||
header = {
|
|
||||||
type = "text";
|
|
||||||
align = "center";
|
|
||||||
foldSection = false;
|
|
||||||
title = "Header";
|
|
||||||
margin = 5;
|
|
||||||
content.__raw = "require('startup.headers').hydra_header";
|
|
||||||
highlight = "Statement";
|
|
||||||
defaultColor = "";
|
|
||||||
oldfilesAmount = 0;
|
|
||||||
};
|
|
||||||
body = {
|
|
||||||
type = "mapping";
|
|
||||||
align = "center";
|
|
||||||
foldSection = true;
|
|
||||||
title = "Basic Commands";
|
|
||||||
margin = 5;
|
|
||||||
content = [
|
|
||||||
[
|
|
||||||
" Find File"
|
|
||||||
"Telescope find_files"
|
|
||||||
"<leader>ff"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
" Find Word"
|
|
||||||
"Telescope live_grep"
|
|
||||||
"<leader>lg"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
" Recent Files"
|
|
||||||
"Telescope oldfiles"
|
|
||||||
"<leader>of"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
" File Browser"
|
|
||||||
"Telescope file_browser"
|
|
||||||
"<leader>fb"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
" Colorschemes"
|
|
||||||
"Telescope colorscheme"
|
|
||||||
"<leader>cs"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
" New File"
|
|
||||||
"lua require'startup'.new_file()"
|
|
||||||
"<leader>nf"
|
|
||||||
]
|
|
||||||
];
|
|
||||||
highlight = "String";
|
|
||||||
defaultColor = "";
|
|
||||||
oldfilesAmount = 0;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
options = {
|
|
||||||
mappingKeys = helpers.defaultNullOpts.mkBool true ''
|
|
||||||
Display mapping (e.g. `<leader>ff`).
|
|
||||||
'';
|
|
||||||
|
|
||||||
cursorColumn =
|
|
||||||
helpers.defaultNullOpts.mkNullable (with types; either (numbers.between 0.0 1.0) ints.positive) 0.5
|
|
||||||
''
|
|
||||||
- if < 1, fraction of screen width
|
|
||||||
- if > 1 numbers of column
|
|
||||||
'';
|
|
||||||
|
|
||||||
after = helpers.defaultNullOpts.mkLuaFn "nil" ''
|
|
||||||
A function that gets executed at the end.
|
|
||||||
'';
|
|
||||||
|
|
||||||
emptyLinesBetweenMappings = helpers.defaultNullOpts.mkBool true ''
|
|
||||||
Add an empty line between mapping/commands.
|
|
||||||
'';
|
|
||||||
|
|
||||||
disableStatuslines = helpers.defaultNullOpts.mkBool true ''
|
|
||||||
Disable status-, buffer- and tablines.
|
|
||||||
'';
|
|
||||||
|
|
||||||
paddings = helpers.defaultNullOpts.mkListOf types.ints.unsigned [ ] ''
|
|
||||||
Amount of empty lines before each section (must be equal to amount of sections).
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
mappings = {
|
|
||||||
executeCommand = helpers.defaultNullOpts.mkStr "<CR>" ''
|
|
||||||
Keymapping to execute a command.
|
|
||||||
'';
|
|
||||||
|
|
||||||
openFile = helpers.defaultNullOpts.mkStr "o" ''
|
|
||||||
Keymapping to open a file.
|
|
||||||
'';
|
|
||||||
|
|
||||||
openFileSplit = helpers.defaultNullOpts.mkStr "<c-o>" ''
|
|
||||||
Keymapping to open a file in a split.
|
|
||||||
'';
|
|
||||||
|
|
||||||
openSection = helpers.defaultNullOpts.mkStr "<TAB>" ''
|
|
||||||
Keymapping to open a section.
|
|
||||||
'';
|
|
||||||
|
|
||||||
openHelp = helpers.defaultNullOpts.mkStr "?" ''
|
|
||||||
Keymapping to open help.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
colors = {
|
|
||||||
background = helpers.defaultNullOpts.mkStr "#1f2227" ''
|
|
||||||
The background color.
|
|
||||||
'';
|
|
||||||
|
|
||||||
foldedSection = helpers.defaultNullOpts.mkStr "#56b6c2" ''
|
|
||||||
The color of folded sections.
|
|
||||||
This can also be changed with the `StartupFoldedSection` highlight group.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
parts = mkOption {
|
|
||||||
type = with types; listOf str;
|
|
||||||
default = [ ];
|
|
||||||
description = "List all sections in order.";
|
|
||||||
example = [
|
|
||||||
"section_1"
|
|
||||||
"section_2"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
userMappings = mkOption {
|
|
||||||
type = with types; attrsOf str;
|
|
||||||
description = "Add your own mappings as key-command pairs.";
|
description = "Add your own mappings as key-command pairs.";
|
||||||
default = { };
|
default = { };
|
||||||
example = {
|
example = {
|
||||||
|
|
@ -261,83 +23,34 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
settingsExample = {
|
||||||
assertions =
|
theme = "dashboard";
|
||||||
let
|
options = {
|
||||||
sectionNames = attrNames cfg.sections;
|
mapping_keys = true;
|
||||||
numSections = length sectionNames;
|
cursor_column = 0.5;
|
||||||
in
|
after = null;
|
||||||
lib.nixvim.mkAssertions "plugins.startup" [
|
empty_lines_between_mappings = true;
|
||||||
{
|
disable_statuslines = true;
|
||||||
assertion = (cfg.options.paddings == null) || (length cfg.options.paddings) == numSections;
|
paddings = lib.nixvim.nestedLiteral (lib.literalExpression "lib.nixvim.utils.emptyTable");
|
||||||
message = ''
|
|
||||||
Make sure that `plugins.startup.options.paddings` has the same
|
|
||||||
number of elements as there are sections.
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
{
|
|
||||||
assertion =
|
|
||||||
((length cfg.parts) <= numSections) && (all (part: hasAttr part cfg.sections) cfg.parts);
|
|
||||||
message = ''
|
|
||||||
You should not have more section names in `plugins.startup.parts` than you have sections defined.
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
];
|
|
||||||
extraPlugins = [ cfg.package ];
|
|
||||||
|
|
||||||
extraConfigLua =
|
|
||||||
let
|
|
||||||
sections = mapAttrs (
|
|
||||||
name: sectionAttrs: with sectionAttrs; {
|
|
||||||
inherit type;
|
|
||||||
oldfiles_directory = oldfilesDirectory;
|
|
||||||
inherit align;
|
|
||||||
fold_section = foldSection;
|
|
||||||
inherit
|
|
||||||
title
|
|
||||||
margin
|
|
||||||
content
|
|
||||||
highlight
|
|
||||||
;
|
|
||||||
default_color = defaultColor;
|
|
||||||
oldfiles_amount = oldfilesAmount;
|
|
||||||
}
|
|
||||||
) cfg.sections;
|
|
||||||
|
|
||||||
options =
|
|
||||||
with cfg.options;
|
|
||||||
{
|
|
||||||
mapping_keys = mappingKeys;
|
|
||||||
cursor_column = cursorColumn;
|
|
||||||
inherit after;
|
|
||||||
empty_lines_between_mappings = emptyLinesBetweenMappings;
|
|
||||||
disable_statuslines = disableStatuslines;
|
|
||||||
inherit paddings;
|
|
||||||
}
|
|
||||||
// cfg.extraOptions;
|
|
||||||
|
|
||||||
setupOptions = {
|
|
||||||
inherit (cfg) theme;
|
|
||||||
inherit options;
|
|
||||||
mappings = with cfg.mappings; {
|
|
||||||
execute_command = executeCommand;
|
|
||||||
open_file = openFile;
|
|
||||||
open_file_split = openFileSplit;
|
|
||||||
open_section = openSection;
|
|
||||||
open_help = openHelp;
|
|
||||||
};
|
};
|
||||||
colors = with cfg.colors; {
|
mappings = {
|
||||||
inherit background;
|
execute_command = "<CR>";
|
||||||
folded_section = foldedSection;
|
open_file = "o";
|
||||||
|
open_file_split = "<c-o>";
|
||||||
|
open_section = "<TAB>";
|
||||||
|
open_help = "?";
|
||||||
};
|
};
|
||||||
inherit (cfg) parts;
|
colors = {
|
||||||
}
|
background = "#1f2227";
|
||||||
// sections;
|
folded_section = "#56b6c2";
|
||||||
in
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = cfg: {
|
||||||
|
extraConfigLua = ''
|
||||||
|
require('startup').setup(${lib.nixvim.toLuaObject cfg.settings})
|
||||||
''
|
''
|
||||||
require('startup').setup(${lib.nixvim.toLuaObject setupOptions})
|
+ (lib.optionalString (
|
||||||
''
|
|
||||||
+ (optionalString (
|
|
||||||
cfg.userMappings != { }
|
cfg.userMappings != { }
|
||||||
) "require('startup').create_mappings(${lib.nixvim.toLuaObject cfg.userMappings})");
|
) "require('startup').create_mappings(${lib.nixvim.toLuaObject cfg.userMappings})");
|
||||||
};
|
};
|
||||||
|
|
|
||||||
50
plugins/by-name/startup/deprecations.nix
Normal file
50
plugins/by-name/startup/deprecations.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
lib: {
|
||||||
|
deprecateExtraOptions = true;
|
||||||
|
|
||||||
|
optionsRenamedToSettings = map (lib.splitString ".") [
|
||||||
|
"theme"
|
||||||
|
|
||||||
|
"options.mappingKeys"
|
||||||
|
"options.cursorColumn"
|
||||||
|
"options.after"
|
||||||
|
"options.emptyLinesBetweenMappings"
|
||||||
|
"options.disableStatuslines"
|
||||||
|
"options.paddings"
|
||||||
|
|
||||||
|
"mappings.executeCommand"
|
||||||
|
"mappings.openFile"
|
||||||
|
"mappings.openFileSplit"
|
||||||
|
"mappings.openSection"
|
||||||
|
"mappings.openHelp"
|
||||||
|
|
||||||
|
"colors.background"
|
||||||
|
"colors.foldedSection"
|
||||||
|
|
||||||
|
"parts"
|
||||||
|
];
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
(
|
||||||
|
let
|
||||||
|
inherit (lib) mapAttrs mapAttrs' nameValuePair;
|
||||||
|
inherit (lib.nixvim) ifNonNull' toSnakeCase;
|
||||||
|
basePathAnd = lib.concat [
|
||||||
|
"plugins"
|
||||||
|
"startup"
|
||||||
|
];
|
||||||
|
oldOptPath = basePathAnd [ "sections" ];
|
||||||
|
in
|
||||||
|
lib.mkChangedOptionModule oldOptPath
|
||||||
|
(basePathAnd [
|
||||||
|
"settings"
|
||||||
|
])
|
||||||
|
(
|
||||||
|
config:
|
||||||
|
let
|
||||||
|
old = lib.getAttrFromPath oldOptPath config;
|
||||||
|
in
|
||||||
|
ifNonNull' old (mapAttrs (_: (mapAttrs' (n: nameValuePair (toSnakeCase n)))) old)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -6,27 +6,29 @@
|
||||||
builtin-theme = {
|
builtin-theme = {
|
||||||
plugins.startup = {
|
plugins.startup = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
settings = {
|
||||||
theme = "dashboard";
|
theme = "dashboard";
|
||||||
|
|
||||||
# Default options
|
# Default options
|
||||||
options = {
|
options = {
|
||||||
mappingKeys = true;
|
mapping_keys = true;
|
||||||
cursorColumn = 0.5;
|
cursor_column = 0.5;
|
||||||
after = null;
|
after = null;
|
||||||
emptyLinesBetweenMappings = true;
|
empty_lines_between_mappings = true;
|
||||||
disableStatuslines = true;
|
disable_statuslines = true;
|
||||||
paddings = [ ];
|
paddings.__empty = { };
|
||||||
};
|
};
|
||||||
mappings = {
|
mappings = {
|
||||||
executeCommand = "<CR>";
|
execute_command = "<CR>";
|
||||||
openFile = "o";
|
open_file = "o";
|
||||||
openFileSplit = "<c-o>";
|
open_file_split = "<c-o>";
|
||||||
openSection = "<TAB>";
|
open_section = "<TAB>";
|
||||||
openHelp = "?";
|
open_help = "?";
|
||||||
};
|
};
|
||||||
colors = {
|
colors = {
|
||||||
background = "#1f2227";
|
background = "#1f2227";
|
||||||
foldedSection = "#56b6c2";
|
folded_section = "#56b6c2";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
userMappings = {
|
userMappings = {
|
||||||
"<leader>ff" = "<cmd>Telescope find_files<CR>";
|
"<leader>ff" = "<cmd>Telescope find_files<CR>";
|
||||||
|
|
@ -40,34 +42,34 @@
|
||||||
plugins.startup = {
|
plugins.startup = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
sections = {
|
settings = {
|
||||||
header = {
|
header = {
|
||||||
type = "text";
|
type = "text";
|
||||||
align = "center";
|
align = "center";
|
||||||
foldSection = false;
|
fold_section = false;
|
||||||
title = "Header";
|
title = "Header";
|
||||||
margin = 5;
|
margin = 5;
|
||||||
content.__raw = "require('startup.headers').hydra_header";
|
content.__raw = "require('startup.headers').hydra_header";
|
||||||
highlight = "Statement";
|
highlight = "Statement";
|
||||||
defaultColor = "";
|
default_color = "";
|
||||||
oldfilesAmount = 0;
|
oldfiles_amount = 0;
|
||||||
};
|
};
|
||||||
header_2 = {
|
header_2 = {
|
||||||
type = "text";
|
type = "text";
|
||||||
oldfilesDirectory = false;
|
oldfiles_directory = false;
|
||||||
align = "center";
|
align = "center";
|
||||||
foldSection = false;
|
fold_section = false;
|
||||||
title = "Quote";
|
title = "Quote";
|
||||||
margin = 5;
|
margin = 5;
|
||||||
content.__raw = "require('startup.functions').quote()";
|
content.__raw = "require('startup.functions').quote()";
|
||||||
highlight = "Constant";
|
highlight = "Constant";
|
||||||
defaultColor = "";
|
default_color = "";
|
||||||
oldfilesAmount = 0;
|
oldfiles_amount = 0;
|
||||||
};
|
};
|
||||||
body = {
|
body = {
|
||||||
type = "mapping";
|
type = "mapping";
|
||||||
align = "center";
|
align = "center";
|
||||||
foldSection = true;
|
fold_section = true;
|
||||||
title = "Basic Commands";
|
title = "Basic Commands";
|
||||||
margin = 5;
|
margin = 5;
|
||||||
content = [
|
content = [
|
||||||
|
|
@ -103,32 +105,32 @@
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
highlight = "String";
|
highlight = "String";
|
||||||
defaultColor = "";
|
default_color = "";
|
||||||
oldfilesAmount = 0;
|
oldfiles_amount = 0;
|
||||||
};
|
};
|
||||||
body_2 = {
|
body_2 = {
|
||||||
type = "oldfiles";
|
type = "oldfiles";
|
||||||
oldfilesDirectory = true;
|
oldfiles_directory = true;
|
||||||
align = "center";
|
align = "center";
|
||||||
foldSection = true;
|
fold_section = true;
|
||||||
title = "Oldfiles of Directory";
|
title = "Oldfiles of Directory";
|
||||||
margin = 5;
|
margin = 5;
|
||||||
content = [ ];
|
content.__empty = { };
|
||||||
highlight = "String";
|
highlight = "String";
|
||||||
defaultColor = "#FFFFFF";
|
default_color = "#FFFFFF";
|
||||||
oldfilesAmount = 5;
|
oldfiles_amount = 5;
|
||||||
};
|
};
|
||||||
footer = {
|
footer = {
|
||||||
type = "oldfiles";
|
type = "oldfiles";
|
||||||
oldfilesDirectory = false;
|
oldfiles_directory = false;
|
||||||
align = "center";
|
align = "center";
|
||||||
foldSection = true;
|
fold_section = true;
|
||||||
title = "Oldfiles";
|
title = "Oldfiles";
|
||||||
margin = 5;
|
margin = 5;
|
||||||
content = [ "startup.nvim" ];
|
content = [ "startup.nvim" ];
|
||||||
highlight = "TSString";
|
highlight = "TSString";
|
||||||
defaultColor = "#FFFFFF";
|
default_color = "#FFFFFF";
|
||||||
oldfilesAmount = 5;
|
oldfiles_amount = 5;
|
||||||
};
|
};
|
||||||
clock = {
|
clock = {
|
||||||
type = "text";
|
type = "text";
|
||||||
|
|
@ -139,27 +141,26 @@
|
||||||
return { clock, date }
|
return { clock, date }
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
oldfilesDirectory = false;
|
oldfiles_directory = false;
|
||||||
align = "center";
|
align = "center";
|
||||||
foldSection = false;
|
fold_section = false;
|
||||||
title = "";
|
title = "";
|
||||||
margin = 5;
|
margin = 5;
|
||||||
highlight = "TSString";
|
highlight = "TSString";
|
||||||
defaultColor = "#FFFFFF";
|
default_color = "#FFFFFF";
|
||||||
oldfilesAmount = 10;
|
oldfiles_amount = 10;
|
||||||
};
|
};
|
||||||
footer_2 = {
|
footer_2 = {
|
||||||
type = "text";
|
type = "text";
|
||||||
content.__raw = "require('startup.functions').packer_plugins()";
|
content.__raw = "require('startup.functions').packer_plugins()";
|
||||||
oldfilesDirectory = false;
|
oldfiles_directory = false;
|
||||||
align = "center";
|
align = "center";
|
||||||
foldSection = false;
|
fold_section = false;
|
||||||
title = "";
|
title = "";
|
||||||
margin = 5;
|
margin = 5;
|
||||||
highlight = "TSString";
|
highlight = "TSString";
|
||||||
defaultColor = "#FFFFFF";
|
default_color = "#FFFFFF";
|
||||||
oldfilesAmount = 10;
|
oldfiles_amount = 10;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
options = {
|
options = {
|
||||||
after = ''
|
after = ''
|
||||||
|
|
@ -167,10 +168,10 @@
|
||||||
require("startup.utils").oldfiles_mappings()
|
require("startup.utils").oldfiles_mappings()
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
mappingKeys = true;
|
mapping_keys = true;
|
||||||
cursorColumn = 0.5;
|
cursor_column = 0.5;
|
||||||
emptyLinesBetweenMappings = true;
|
empty_lines_between_mappings = true;
|
||||||
disableStatuslines = true;
|
disable_statuslines = true;
|
||||||
paddings = [
|
paddings = [
|
||||||
2
|
2
|
||||||
2
|
2
|
||||||
|
|
@ -183,7 +184,7 @@
|
||||||
};
|
};
|
||||||
colors = {
|
colors = {
|
||||||
background = "#1f2227";
|
background = "#1f2227";
|
||||||
foldedSection = "#56b6c2";
|
folded_section = "#56b6c2";
|
||||||
};
|
};
|
||||||
parts = [
|
parts = [
|
||||||
"header"
|
"header"
|
||||||
|
|
@ -196,4 +197,5 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue