nix-community.nixvim/plugins/ui/virt-column.nix

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

76 lines
1.8 KiB
Nix
Raw Normal View History

2024-02-22 07:55:43 +00:00
{
lib,
helpers,
...
}:
with lib;
2024-09-01 12:52:28 +01:00
helpers.neovim-plugin.mkNeovimPlugin {
2024-02-22 07:55:43 +00:00
name = "virt-column";
originalName = "virt-column.nvim";
package = "virt-column-nvim";
2024-02-22 07:55:43 +00:00
maintainers = [ helpers.maintainers.alisonjenkins ];
settingsOptions = {
enabled = helpers.defaultNullOpts.mkBool true ''
Enables or disables virt-column.
'';
2024-06-11 16:54:41 +01:00
char = helpers.defaultNullOpts.mkNullable (with types; either str (listOf str)) [ "" ] ''
2024-02-22 07:55:43 +00:00
Character, or list of characters, that get used to display the virtual column.
Each character has to have a display width of 0 or 1.
'';
virtcolumn = helpers.defaultNullOpts.mkStr "" ''
Comma-separated list of screen columns same syntax as `:help colorcolumn`.
'';
highlight = helpers.defaultNullOpts.mkNullable (with types; either str (listOf str)) "NonText" ''
Highlight group, or list of highlight groups, that get applied to the virtual column.
'';
exclude = {
2024-06-11 16:54:41 +01:00
filetypes = helpers.defaultNullOpts.mkListOf types.str [
"lspinfo"
"packer"
"checkhealth"
"help"
"man"
"TelescopePrompt"
"TelescopeResults"
] "List of `filetype`s for which virt-column is disabled.";
2024-05-05 19:39:35 +02:00
2024-06-11 16:54:41 +01:00
buftypes = helpers.defaultNullOpts.mkListOf types.str [
"nofile"
"quickfix"
"terminal"
"prompt"
] "List of `buftype`s for which virt-column is disabled.";
2024-02-22 07:55:43 +00:00
};
2024-05-05 19:39:35 +02:00
};
2024-02-22 07:55:43 +00:00
settingsExample = {
enabled = true;
char = "";
virtcolumn = "";
highlight = "NonText";
exclude = {
filetypes = [
"lspinfo"
2024-05-05 19:39:35 +02:00
"packer"
2024-02-22 07:55:43 +00:00
"checkhealth"
2024-05-05 19:39:35 +02:00
"help"
"man"
2024-02-22 07:55:43 +00:00
"TelescopePrompt"
"TelescopeResults"
2024-05-05 19:39:35 +02:00
];
2024-02-22 07:55:43 +00:00
buftypes = [
2024-05-05 19:39:35 +02:00
"nofile"
2024-02-22 07:55:43 +00:00
"quickfix"
"terminal"
2024-05-05 19:39:35 +02:00
"prompt"
];
2024-02-22 07:55:43 +00:00
};
2024-05-05 19:39:35 +02:00
};
2024-02-22 07:55:43 +00:00
}