mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-13 08:08:37 +00:00
neovim/diagnostic: fix missin submodule opts
This commit is contained in:
parent
0fc84ed868
commit
e2b3daa6f8
1 changed files with 59 additions and 52 deletions
|
@ -12,9 +12,15 @@
|
|||
|
||||
cfg = config.vim.diagnostics;
|
||||
|
||||
# Takes a boolean, a table, or a Lua list ({key = value}). We
|
||||
# would like to allow all of those types, while clearly expressing
|
||||
# them in the option's type. As such, this type is what it is.
|
||||
diagnosticType = oneOf [(attrsOf anything) bool luaInline];
|
||||
diagnosticsSubmodule = submodule {
|
||||
# The table might need to be extended, so let's allow that case
|
||||
# with a freeform type of what is supported by diagnostics opts.
|
||||
freeformType = attrsOf diagnosticType;
|
||||
options = {
|
||||
underline = mkOption {
|
||||
type = diagnosticType;
|
||||
default = true;
|
||||
|
@ -71,6 +77,7 @@
|
|||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
options.vim = {
|
||||
diagnostics = {
|
||||
|
|
Loading…
Add table
Reference in a new issue