mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-25 02:08:40 +02:00
plugins/bufferlines: normalize plugin defaults
This commit is contained in:
parent
9000e69f4b
commit
d57cbd867a
3 changed files with 24 additions and 12 deletions
|
@ -24,11 +24,17 @@ in
|
||||||
Whether to create winbar updater autocmd.
|
Whether to create winbar updater autocmd.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
includeBuftypes = mkListStr ''[""]'' ''
|
includeBuftypes = mkListStr [ "" ] ''
|
||||||
Buftypes to enable winbar in.
|
Buftypes to enable winbar in.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
excludeFiletypes = mkListStr ''["netrw" "toggleterm"]'' ''
|
excludeFiletypes =
|
||||||
|
mkListStr
|
||||||
|
[
|
||||||
|
"netrw"
|
||||||
|
"toggleterm"
|
||||||
|
]
|
||||||
|
''
|
||||||
Filetypes not to enable winbar in.
|
Filetypes not to enable winbar in.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -208,7 +208,7 @@ in
|
||||||
"nvim_lsp"
|
"nvim_lsp"
|
||||||
"coc"
|
"coc"
|
||||||
])
|
])
|
||||||
) "false" "diagnostics";
|
) false "diagnostics";
|
||||||
|
|
||||||
diagnosticsIndicator = helpers.defaultNullOpts.mkLuaFn null "Either `null` or a function that returns the diagnostics indicator.";
|
diagnosticsIndicator = helpers.defaultNullOpts.mkLuaFn null "Either `null` or a function that returns the diagnostics indicator.";
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ in
|
||||||
offsets = helpers.defaultNullOpts.mkNullable (types.listOf types.attrs) null "offsets";
|
offsets = helpers.defaultNullOpts.mkNullable (types.listOf types.attrs) null "offsets";
|
||||||
|
|
||||||
groups = {
|
groups = {
|
||||||
items = helpers.defaultNullOpts.mkNullable (types.listOf types.attrs) "[]" "List of groups.";
|
items = helpers.defaultNullOpts.mkListOf types.attrs [ ] "List of groups.";
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
toggleHiddenOnEnter = helpers.defaultNullOpts.mkBool true "Re-open hidden groups on bufenter.";
|
toggleHiddenOnEnter = helpers.defaultNullOpts.mkBool true "Re-open hidden groups on bufenter.";
|
||||||
|
@ -227,7 +227,7 @@ in
|
||||||
hover = {
|
hover = {
|
||||||
enabled = mkEnableOption "hover";
|
enabled = mkEnableOption "hover";
|
||||||
|
|
||||||
reveal = helpers.defaultNullOpts.mkNullable (types.listOf types.str) "[]" "reveal";
|
reveal = helpers.defaultNullOpts.mkListOf types.str [ ] "reveal";
|
||||||
|
|
||||||
delay = helpers.defaultNullOpts.mkInt 200 "delay";
|
delay = helpers.defaultNullOpts.mkInt 200 "delay";
|
||||||
};
|
};
|
||||||
|
|
|
@ -49,12 +49,18 @@ in
|
||||||
Enable to have nvim-navic automatically attach to every LSP for current buffer. Its disabled by default.
|
Enable to have nvim-navic automatically attach to every LSP for current buffer. Its disabled by default.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preference = helpers.defaultNullOpts.mkNullable (with types; listOf str) "[]" ''
|
preference = helpers.defaultNullOpts.mkListOf' {
|
||||||
|
type = types.str;
|
||||||
|
pluginDefault = [ ];
|
||||||
|
example = [
|
||||||
|
"clangd"
|
||||||
|
"pyright"
|
||||||
|
];
|
||||||
|
description = ''
|
||||||
Table ranking lsp_servers. Lower the index, higher the priority of the server. If there are more than one server attached to a buffer. In the example below will prefer clangd over pyright
|
Table ranking lsp_servers. Lower the index, higher the priority of the server. If there are more than one server attached to a buffer. In the example below will prefer clangd over pyright
|
||||||
|
|
||||||
Example: `[ "clangd" "pyright" ]`.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
highlight = helpers.defaultNullOpts.mkBool false ''
|
highlight = helpers.defaultNullOpts.mkBool false ''
|
||||||
If set to true, will add colors to icons and text as defined by highlight groups NavicIcons* (NavicIconsFile, NavicIconsModule.. etc.), NavicText and NavicSeparator.
|
If set to true, will add colors to icons and text as defined by highlight groups NavicIcons* (NavicIconsFile, NavicIconsModule.. etc.), NavicText and NavicSeparator.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue