plugins/bufferlines: normalize plugin defaults

This commit is contained in:
Matt Sturgeon 2024-06-11 16:50:36 +01:00
parent 9000e69f4b
commit d57cbd867a
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 24 additions and 12 deletions

View file

@ -49,11 +49,17 @@ in
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) "[]" ''
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" ]`.
'';
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
'';
};
};
highlight = helpers.defaultNullOpts.mkBool false ''