mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
dev: provide defaults within submodules
This commit is contained in:
parent
2f09d48e7c
commit
c766e8cf27
1 changed files with 24 additions and 24 deletions
|
@ -205,18 +205,6 @@ with builtins; {
|
||||||
debounceDelay = 50;
|
debounceDelay = 50;
|
||||||
showOnDirs = false;
|
showOnDirs = false;
|
||||||
showOnOpenDirs = true;
|
showOnOpenDirs = true;
|
||||||
|
|
||||||
icons = {
|
|
||||||
hint = "";
|
|
||||||
info = "";
|
|
||||||
warning = "";
|
|
||||||
error = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
severity = {
|
|
||||||
min = "HINT";
|
|
||||||
max = "ERROR";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
|
@ -241,6 +229,13 @@ with builtins; {
|
||||||
|
|
||||||
icons = mkOption {
|
icons = mkOption {
|
||||||
description = "Icons for diagnostic severity.";
|
description = "Icons for diagnostic severity.";
|
||||||
|
default = {
|
||||||
|
hint = "";
|
||||||
|
info = "";
|
||||||
|
warning = "";
|
||||||
|
error = "";
|
||||||
|
};
|
||||||
|
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
hint = mkOption {
|
hint = mkOption {
|
||||||
|
@ -265,6 +260,10 @@ with builtins; {
|
||||||
|
|
||||||
severity = mkOption {
|
severity = mkOption {
|
||||||
description = "Severity for which the diagnostics will be displayed. See `:help diagnostic-severity`";
|
description = "Severity for which the diagnostics will be displayed. See `:help diagnostic-severity`";
|
||||||
|
default = {
|
||||||
|
min = "HINT";
|
||||||
|
max = "ERROR";
|
||||||
|
};
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
min = mkOption {
|
min = mkOption {
|
||||||
|
@ -399,18 +398,6 @@ with builtins; {
|
||||||
number = false;
|
number = false;
|
||||||
relativenumber = false;
|
relativenumber = false;
|
||||||
signcolumn = "yes";
|
signcolumn = "yes";
|
||||||
float = {
|
|
||||||
enable = false;
|
|
||||||
quitOnFocusLoss = true;
|
|
||||||
openWinConfig = {
|
|
||||||
relative = "editor";
|
|
||||||
border = "rounded";
|
|
||||||
width = 30;
|
|
||||||
height = 30;
|
|
||||||
row = 1;
|
|
||||||
col = 1;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
|
@ -485,6 +472,19 @@ with builtins; {
|
||||||
|
|
||||||
float = mkOption {
|
float = mkOption {
|
||||||
description = "Configuration options for floating window.";
|
description = "Configuration options for floating window.";
|
||||||
|
default = {
|
||||||
|
enable = false;
|
||||||
|
quitOnFocusLoss = true;
|
||||||
|
openWinConfig = {
|
||||||
|
relative = "editor";
|
||||||
|
border = "rounded";
|
||||||
|
width = 30;
|
||||||
|
height = 30;
|
||||||
|
row = 1;
|
||||||
|
col = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
|
|
Loading…
Reference in a new issue