mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/ui: move to by-name
This commit is contained in:
parent
2456370ab2
commit
91c6b62881
25 changed files with 0 additions and 13 deletions
75
plugins/by-name/virt-column/default.nix
Normal file
75
plugins/by-name/virt-column/default.nix
Normal file
|
@ -0,0 +1,75 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
helpers.neovim-plugin.mkNeovimPlugin {
|
||||
name = "virt-column";
|
||||
originalName = "virt-column.nvim";
|
||||
package = "virt-column-nvim";
|
||||
|
||||
maintainers = [ helpers.maintainers.alisonjenkins ];
|
||||
|
||||
settingsOptions = {
|
||||
enabled = helpers.defaultNullOpts.mkBool true ''
|
||||
Enables or disables virt-column.
|
||||
'';
|
||||
|
||||
char = helpers.defaultNullOpts.mkNullable (with types; either str (listOf str)) [ "┃" ] ''
|
||||
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 = {
|
||||
filetypes = helpers.defaultNullOpts.mkListOf types.str [
|
||||
"lspinfo"
|
||||
"packer"
|
||||
"checkhealth"
|
||||
"help"
|
||||
"man"
|
||||
"TelescopePrompt"
|
||||
"TelescopeResults"
|
||||
] "List of `filetype`s for which virt-column is disabled.";
|
||||
|
||||
buftypes = helpers.defaultNullOpts.mkListOf types.str [
|
||||
"nofile"
|
||||
"quickfix"
|
||||
"terminal"
|
||||
"prompt"
|
||||
] "List of `buftype`s for which virt-column is disabled.";
|
||||
};
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
enabled = true;
|
||||
char = "┃";
|
||||
virtcolumn = "";
|
||||
highlight = "NonText";
|
||||
exclude = {
|
||||
filetypes = [
|
||||
"lspinfo"
|
||||
"packer"
|
||||
"checkhealth"
|
||||
"help"
|
||||
"man"
|
||||
"TelescopePrompt"
|
||||
"TelescopeResults"
|
||||
];
|
||||
buftypes = [
|
||||
"nofile"
|
||||
"quickfix"
|
||||
"terminal"
|
||||
"prompt"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue