nix-community.nixvim/plugins/by-name/indent-o-matic/default.nix

31 lines
782 B
Nix
Raw Normal View History

{ lib, ... }:
let
inherit (lib) types;
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.neovim-plugin.mkNeovimPlugin {
2024-05-05 19:39:35 +02:00
name = "indent-o-matic";
2024-09-27 05:28:00 +01:00
maintainers = [ lib.maintainers.alisonjenkins ];
2024-05-05 19:39:35 +02:00
settingsOptions = {
max_lines =
defaultNullOpts.mkInt 2048
2024-05-05 19:39:35 +02:00
"Number of lines without indentation before giving up (use -1 for infinite)";
skip_multiline = defaultNullOpts.mkBool false "Skip multi-line comments and strings (more accurate detection but less performant)";
standard_widths = defaultNullOpts.mkListOf types.ints.unsigned [
2
4
8
] "Space indentations that should be detected";
2024-05-05 19:39:35 +02:00
};
2024-02-27 12:47:25 +00:00
2024-05-05 19:39:35 +02:00
settingsExample = {
max_lines = 2048;
skip_multiline = false;
standard_widths = [
2
4
8
];
};
}