Adding showchars option

This commit is contained in:
Neko Box Coder
2025-07-13 20:05:39 +01:00
parent 532c315f79
commit 1ef6459846
3 changed files with 81 additions and 23 deletions

View File

@@ -70,7 +70,7 @@ var defaultCommonSettings = map[string]interface{}{
"hltrailingws": false,
"ignorecase": true,
"incsearch": true,
"indentchar": " ",
"indentchar": " ", // Deprecated
"keepautoindent": false,
"matchbrace": true,
"matchbraceleft": true,
@@ -88,6 +88,7 @@ var defaultCommonSettings = map[string]interface{}{
"scrollbar": false,
"scrollmargin": float64(3),
"scrollspeed": float64(2),
"showchars": "",
"smartpaste": true,
"softwrap": false,
"splitbottom": true,
@@ -210,6 +211,7 @@ func validateParsedSettings() error {
}
continue
}
if _, ok := defaults[k]; ok {
if e := verifySetting(k, v, defaults[k]); e != nil {
err = e