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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
768 B
Nix
Raw Normal View History

{ lib, ... }:
let
inherit (lib) types;
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.neovim-plugin.mkNeovimPlugin {
2024-02-27 12:47:25 +00:00
name = "indent-o-matic";
2024-09-27 05:28:00 +01:00
maintainers = [ lib.maintainers.alisonjenkins ];
2024-02-27 12:47:25 +00:00
settingsOptions = {
2024-12-06 11:33:22 +01:00
max_lines = defaultNullOpts.mkInt 2048 "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-02-27 12:47:25 +00:00
};
settingsExample = {
max_lines = 2048;
skip_multiline = false;
standard_widths = [
2
4
8
];
};
}