1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-06 09:01:06 +01:00

plugins/codesnap: remove settingsOption

Blocking configuration from v2 of plugin.
This commit is contained in:
Austin Horstman 2025-12-03 17:12:30 -06:00 committed by Gaétan Lepage
parent 8c9ba3b5d8
commit 5d1c27e53c

View file

@ -7,77 +7,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
maintainers = [ maintainers.GaetanLepage ]; maintainers = [ maintainers.GaetanLepage ];
settingsOptions = {
save_path = lib.nixvim.defaultNullOpts.mkStr null ''
The save_path must be ends with `.png`, unless when you specified a directory path, CodeSnap
will append an auto-generated filename to the specified directory path.
For example:
- `save_path = "~/Pictures";`
parsed: `"~/Pictures/CodeSnap_y-m-d_at_h:m:s.png"`
- `save_path = "~/Pictures/foo.png";`
parsed: `"~/Pictures/foo.png"`
'';
mac_window_bar = lib.nixvim.defaultNullOpts.mkBool true ''
Whether to display the MacOS style title bar.
'';
title = lib.nixvim.defaultNullOpts.mkStr "CodeSnap.nvim" ''
The editor title.
'';
code_font_family = lib.nixvim.defaultNullOpts.mkStr "CaskaydiaCove Nerd Font" ''
Which font to use for the code.
'';
watermark_font_family = lib.nixvim.defaultNullOpts.mkStr "Pacifico" ''
Which font to use for watermarks.
'';
watermark = lib.nixvim.defaultNullOpts.mkStr "CodeSnap.nvim" ''
Wartermark of the code snapshot.
'';
bg_theme = lib.nixvim.defaultNullOpts.mkStr "default" ''
Background theme name.
Check the [upstream README](https://github.com/mistricky/codesnap.nvim?tab=readme-ov-file#custom-background)
for available options.
'';
bg_color = lib.nixvim.defaultNullOpts.mkStr' {
pluginDefault = null;
example = "#535c68";
description = ''
If you prefer solid color background, you can set bg_color to your preferred color.
'';
};
breadcrumbs_separator = lib.nixvim.defaultNullOpts.mkStr "/" ''
Separator for breadcrumbs.
The CodeSnap.nvim uses `/` as the separator of the file path by default, of course, you can
specify any symbol you prefer as the custom separator.
'';
has_breadcrumbs = lib.nixvim.defaultNullOpts.mkBool false ''
Whether to display the current snapshot file path.
'';
has_line_number = lib.nixvim.defaultNullOpts.mkBool false ''
Whether to display line numbers.
'';
show_workspace = lib.nixvim.defaultNullOpts.mkBool false ''
Breadcrumbs hide the workspace name by default, if you want to display workspace in
breadcrumbs, you can just set this option to `true`.
'';
min_width = lib.nixvim.defaultNullOpts.mkUnsignedInt 0 ''
Minimum width for the snapshot.
'';
};
settingsExample = { settingsExample = {
save_path = "~/Pictures/Screenshots/"; save_path = "~/Pictures/Screenshots/";
mac_window_bar = true; mac_window_bar = true;