Rename indent-line to indent-char, change default value from | to

This commit is contained in:
Camille Scholtz
2016-05-17 18:09:49 +02:00
parent 9b984b1680
commit 93927cf0f5
6 changed files with 6 additions and 6 deletions

View File

@@ -74,7 +74,7 @@ func DefaultSettings() map[string]interface{} {
return map[string]interface{}{
"colorscheme": "default",
"tabsize": float64(4),
"indentchar": "|",
"indentchar": " ",
"autoindent": true,
"syntax": true,
"tabsToSpaces": false,

View File

@@ -546,7 +546,7 @@ func (v *View) DisplayView() {
if ch == '\t' {
lineIndentStyle := defStyle
if style, ok := colorscheme["indent-line"]; ok {
if style, ok := colorscheme["indent-char"]; ok {
lineIndentStyle = style
}
indentChar := []rune(settings["indentchar"].(string))

View File

@@ -8,7 +8,7 @@ color-link special "magenta"
color-link ignore "default"
color-link error ",brightred"
color-link todo ",brightyellow"
color-link indent-line "black"
color-link indent-char "black"
color-link line-number "yellow"
color-link gutter-error ",red"
color-link gutter-warning "red"

View File

@@ -10,7 +10,7 @@ color-link underlined "#D33682,#002833"
color-link error "bold #CB4B16,#002833"
color-link todo "bold #D33682,#002833"
color-link statusline "#003541,#839496"
color-link indent-line "#586E75,#002833"
color-link indent-char "#586E75,#002833"
color-link line-number "#586E75,#003541"
color-link gutter-error "#003541,#CB4B16"
color-link gutter-warning "#CB4B16,#002833"

View File

@@ -9,7 +9,7 @@ color-link underlined "magenta"
color-link error "bold brightred"
color-link todo "bold magenta"
color-link statusline "black,brightblue"
color-link indent-line "black"
color-link indent-char "black"
color-link line-number "brightgreen,black"
color-link gutter-error "black,brightred"
color-link gutter-warning "brightred,default"

View File

@@ -180,7 +180,7 @@ Here are the options that you can set:
* `indentchar`: sets the indentation character
default value: `|`
default value: ` `
* `syntax`: turns syntax on or off