| 1 |
{ |
| 2 |
"$comment": "https://github.com/zyedidia/micro", |
| 3 |
"$schema": "http://json-schema.org/draft-07/schema#", |
| 4 |
"title": "options", |
| 5 |
"description": "A micro editor config schema", |
| 6 |
"type": "object", |
| 7 |
"properties": { |
| 8 |
"autoindent": { |
| 9 |
"description": "Whether to use the same indentation as a previous line\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 10 |
"type": "boolean", |
| 11 |
"default": true |
| 12 |
}, |
| 13 |
"autosave": { |
| 14 |
"description": "A delay between automatic saves\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 15 |
"type": "integer", |
| 16 |
"minimum": 0, |
| 17 |
"default": 0 |
| 18 |
}, |
| 19 |
"autosu": { |
| 20 |
"description": "Whether attempt to use super user privileges\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 21 |
"type": "boolean", |
| 22 |
"default": false |
| 23 |
}, |
| 24 |
"backup": { |
| 25 |
"description": "Whether to backup all open buffers\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 26 |
"type": "boolean", |
| 27 |
"default": true |
| 28 |
}, |
| 29 |
"backupdir": { |
| 30 |
"description": "A directory to store backups\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 31 |
"type": "string", |
| 32 |
"default": "" |
| 33 |
}, |
| 34 |
"basename": { |
| 35 |
"description": "Whether to show a basename instead of a full path\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 36 |
"type": "boolean", |
| 37 |
"default": false |
| 38 |
}, |
| 39 |
"clipboard": { |
| 40 |
"description": "A way to access the system clipboard\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 41 |
"type": "string", |
| 42 |
"enum": [ |
| 43 |
"external", |
| 44 |
"terminal", |
| 45 |
"internal" |
| 46 |
], |
| 47 |
"default": "external" |
| 48 |
}, |
| 49 |
"colorcolumn": { |
| 50 |
"description": "A position to display a column\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 51 |
"type": "integer", |
| 52 |
"minimum": 0, |
| 53 |
"default": 0 |
| 54 |
}, |
| 55 |
"colorscheme": { |
| 56 |
"description": "A color scheme\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 57 |
"type": "string", |
| 58 |
"enum": [ |
| 59 |
"atom-dark", |
| 60 |
"bubblegum", |
| 61 |
"cmc-16", |
| 62 |
"cmc-tc", |
| 63 |
"darcula", |
| 64 |
"default", |
| 65 |
"dracula-tc", |
| 66 |
"dukedark-tc", |
| 67 |
"dukelight-tc", |
| 68 |
"dukeubuntu-tc", |
| 69 |
"geany", |
| 70 |
"gotham", |
| 71 |
"gruvbox", |
| 72 |
"gruvbox-tc", |
| 73 |
"material-tc", |
| 74 |
"monokai-dark", |
| 75 |
"monokai", |
| 76 |
"one-dark", |
| 77 |
"railscast", |
| 78 |
"simple", |
| 79 |
"solarized", |
| 80 |
"solarized-tc", |
| 81 |
"sunny-day", |
| 82 |
"twilight", |
| 83 |
"zenburn" |
| 84 |
], |
| 85 |
"default": "default" |
| 86 |
}, |
| 87 |
"cursorline": { |
| 88 |
"description": "Whether to highlight a line with a cursor with a different color\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 89 |
"type": "boolean", |
| 90 |
"default": true |
| 91 |
}, |
| 92 |
"diffgutter": { |
| 93 |
"description": "Whether to display diff inticators before lines\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 94 |
"type": "boolean", |
| 95 |
"default": false |
| 96 |
}, |
| 97 |
"divchars": { |
| 98 |
"description": "Divider chars for vertical and horizontal splits\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 99 |
"type": "string", |
| 100 |
"default": "|-" |
| 101 |
}, |
| 102 |
"divreverse": { |
| 103 |
"description": "Whether to use inversed color scheme colors for splits\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 104 |
"type": "boolean", |
| 105 |
"default": true |
| 106 |
}, |
| 107 |
"encoding": { |
| 108 |
"description": "An encoding used to open and save files\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 109 |
"type": "string", |
| 110 |
"default": "utf-8" |
| 111 |
}, |
| 112 |
"eofnewline": { |
| 113 |
"description": "Whether to add a missing trailing new line\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 114 |
"type": "boolean", |
| 115 |
"default": true |
| 116 |
}, |
| 117 |
"fastdirty": { |
| 118 |
"description": "Whether to use a fast algorithm to determine whether a file is changed\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 119 |
"type": "boolean", |
| 120 |
"default": false |
| 121 |
}, |
| 122 |
"fileformat": { |
| 123 |
"description": "A line ending format\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 124 |
"type": "string", |
| 125 |
"enum": [ |
| 126 |
"unix", |
| 127 |
"dos" |
| 128 |
], |
| 129 |
"default": "unix" |
| 130 |
}, |
| 131 |
"filetype": { |
| 132 |
"description": "A filetype for the current buffer\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 133 |
"type": "string", |
| 134 |
"default": "unknown" |
| 135 |
}, |
| 136 |
"hlsearch": { |
| 137 |
"description": "Whether to highlight all instances of a searched text after a successful search\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 138 |
"type": "boolean", |
| 139 |
"default": false |
| 140 |
}, |
| 141 |
"incsearch": { |
| 142 |
"description": "Whether to enable an incremental search in `Find` prompt\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 143 |
"type": "boolean", |
| 144 |
"default": true |
| 145 |
}, |
| 146 |
"ignorecase": { |
| 147 |
"description": "Whether to perform case-insensitive searches\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 148 |
"type": "boolean", |
| 149 |
"default": true |
| 150 |
}, |
| 151 |
"indentchar": { |
| 152 |
"description": "An indentation character\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 153 |
"type": "string", |
| 154 |
"maxLength": 1, |
| 155 |
"default": " " |
| 156 |
}, |
| 157 |
"infobar": { |
| 158 |
"description": "Whether to enable a line at the bottom where messages are printed\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 159 |
"type": "boolean", |
| 160 |
"default": true |
| 161 |
}, |
| 162 |
"keepautoindent": { |
| 163 |
"description": "Whether add a whitespace while using autoindent\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 164 |
"type": "boolean", |
| 165 |
"default": false |
| 166 |
}, |
| 167 |
"keymenu": { |
| 168 |
"description": "Whether to display nano-style key menu at the bottom\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 169 |
"type": "boolean", |
| 170 |
"default": false |
| 171 |
}, |
| 172 |
"matchbrace": { |
| 173 |
"description": "Whether to show matching braces\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 174 |
"type": "boolean", |
| 175 |
"default": true |
| 176 |
}, |
| 177 |
"matchbracestyle": { |
| 178 |
"description": "Whether to underline or highlight matching braces\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 179 |
"type": "string", |
| 180 |
"enum": [ |
| 181 |
"underline", |
| 182 |
"highlight" |
| 183 |
], |
| 184 |
"default": "underline" |
| 185 |
}, |
| 186 |
"mkparents": { |
| 187 |
"description": "Whether to create missing directories\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 188 |
"type": "boolean", |
| 189 |
"default": false |
| 190 |
}, |
| 191 |
"mouse": { |
| 192 |
"description": "Whether to enable mouse support\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 193 |
"type": "boolean", |
| 194 |
"default": true |
| 195 |
}, |
| 196 |
"paste": { |
| 197 |
"description": "Whether to treat characters sent from the terminal in a single chunk as a paste event\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 198 |
"type": "boolean", |
| 199 |
"default": false |
| 200 |
}, |
| 201 |
"parsecursor": { |
| 202 |
"description": "Whether to extract a line number and a column to open files with from file names\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 203 |
"type": "boolean", |
| 204 |
"default": false |
| 205 |
}, |
| 206 |
"permbackup": { |
| 207 |
"description": "Whether to permanently save backups\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 208 |
"type": "boolean", |
| 209 |
"default": false |
| 210 |
}, |
| 211 |
"pluginchannels": { |
| 212 |
"description": "A file with list of plugin channels\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 213 |
"type": "string", |
| 214 |
"default": "https://raw.githubusercontent.com/micro-editor/plugin-channel/master/channel.json" |
| 215 |
}, |
| 216 |
"pluginrepos": { |
| 217 |
"description": "Plugin repositories\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 218 |
"type": "array", |
| 219 |
"uniqueItems": true, |
| 220 |
"items": { |
| 221 |
"description": "A pluging repository\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 222 |
"type": "string" |
| 223 |
}, |
| 224 |
"default": [] |
| 225 |
}, |
| 226 |
"readonly": { |
| 227 |
"description": "Whether to forbid buffer editing\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 228 |
"type": "boolean", |
| 229 |
"default": false |
| 230 |
}, |
| 231 |
"rmtrailingws": { |
| 232 |
"description": "Whether to remove trailing whitespaces\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 233 |
"type": "boolean", |
| 234 |
"default": false |
| 235 |
}, |
| 236 |
"ruler": { |
| 237 |
"description": "Whether to display line numbers\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 238 |
"type": "boolean", |
| 239 |
"default": true |
| 240 |
}, |
| 241 |
"relativeruler": { |
| 242 |
"description": "Whether to display relative line numbers\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 243 |
"type": "boolean", |
| 244 |
"default": false |
| 245 |
}, |
| 246 |
"savecursor": { |
| 247 |
"description": "Whether to save cursor position in files\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 248 |
"type": "boolean", |
| 249 |
"default": false |
| 250 |
}, |
| 251 |
"savehistory": { |
| 252 |
"description": "Whether to save command history between closing and re-opening editor\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 253 |
"type": "boolean", |
| 254 |
"default": true |
| 255 |
}, |
| 256 |
"saveundo": { |
| 257 |
"description": "Whether to save undo after closing file\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 258 |
"type": "boolean", |
| 259 |
"default": false |
| 260 |
}, |
| 261 |
"scrollbar": { |
| 262 |
"description": "Whether to save undo after closing file\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 263 |
"type": "boolean", |
| 264 |
"default": false |
| 265 |
}, |
| 266 |
"scrollmargin": { |
| 267 |
"description": "A margin at which a view starts scrolling when a cursor approaches an edge of a view\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 268 |
"type": "integer", |
| 269 |
"default": 3 |
| 270 |
}, |
| 271 |
"scrollspeed": { |
| 272 |
"description": "Line count to scroll for one scroll event\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 273 |
"type": "integer", |
| 274 |
"default": 2 |
| 275 |
}, |
| 276 |
"smartpaste": { |
| 277 |
"description": "Whether to add a leading whitespace while pasting multiple lines\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 278 |
"type": "boolean", |
| 279 |
"default": true |
| 280 |
}, |
| 281 |
"softwrap": { |
| 282 |
"description": "Whether to wrap long lines\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 283 |
"type": "boolean", |
| 284 |
"default": false |
| 285 |
}, |
| 286 |
"splitbottom": { |
| 287 |
"description": "Whether to create a new horizontal split below the current one\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 288 |
"type": "boolean", |
| 289 |
"default": true |
| 290 |
}, |
| 291 |
"splitright": { |
| 292 |
"description": "Whether to create a new vertical split right of the current one\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 293 |
"type": "boolean", |
| 294 |
"default": true |
| 295 |
}, |
| 296 |
"statusformatl": { |
| 297 |
"description": "Format string of left-justified part of the statusline\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 298 |
"type": "string", |
| 299 |
"default": "$(filename) $(modified)($(line),$(col)) $(status.paste)| ft:$(opt:filetype) | $(opt:fileformat) | $(opt:encoding)" |
| 300 |
}, |
| 301 |
"statusformatr": { |
| 302 |
"description": "Format string of right-justified part of the statusline\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 303 |
"type": "string", |
| 304 |
"default": "$(bind:ToggleKeyMenu): bindings, $(bind:ToggleHelp): help" |
| 305 |
}, |
| 306 |
"statusline": { |
| 307 |
"description": "Whether to display a status line\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 308 |
"type": "boolean", |
| 309 |
"default": true |
| 310 |
}, |
| 311 |
"sucmd": { |
| 312 |
"description": "A super user command\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 313 |
"type": "string", |
| 314 |
"default": "sudo", |
| 315 |
"examples": [ |
| 316 |
"sudo", |
| 317 |
"doas" |
| 318 |
] |
| 319 |
}, |
| 320 |
"syntax": { |
| 321 |
"description": "Whether to enable a syntax highlighting\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 322 |
"type": "boolean", |
| 323 |
"default": true |
| 324 |
}, |
| 325 |
"tabmovement": { |
| 326 |
"description": "Whether to navigate spaces at the beginning of lines as if they are tabs\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 327 |
"type": "boolean", |
| 328 |
"default": false |
| 329 |
}, |
| 330 |
"tabhighlight": { |
| 331 |
"description": "Whether to invert tab character colors\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 332 |
"type": "boolean", |
| 333 |
"default": false |
| 334 |
}, |
| 335 |
"tabreverse": { |
| 336 |
"description": "Whether to reverse tab bar colors\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 337 |
"type": "boolean", |
| 338 |
"default": true |
| 339 |
}, |
| 340 |
"tabsize": { |
| 341 |
"description": "A tab size\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 342 |
"type": "integer", |
| 343 |
"default": 4 |
| 344 |
}, |
| 345 |
"tabstospaces": { |
| 346 |
"description": "Whether to use spaces instead of tabs\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 347 |
"type": "boolean", |
| 348 |
"default": false |
| 349 |
}, |
| 350 |
"useprimary": { |
| 351 |
"description": "Whether to use primary clipboard to copy selections in the background\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 352 |
"type": "boolean", |
| 353 |
"default": true |
| 354 |
}, |
| 355 |
"wordwrap": { |
| 356 |
"description": "Whether to wrap long lines by words\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 357 |
"type": "boolean", |
| 358 |
"default": false |
| 359 |
}, |
| 360 |
"xterm": { |
| 361 |
"description": "Whether to assume that the current terminal is `xterm`\nhttps://github.com/zyedidia/micro/blob/master/runtime/help/options.md#options", |
| 362 |
"type": "boolean", |
| 363 |
"default": false |
| 364 |
} |
| 365 |
}, |
| 366 |
"additionalProperties": false |
| 367 |
} |