{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/micro-settings-json/latest.json",
  "title": "options",
  "description": "A micro editor config schema",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/zyedidia/micro/master/data/micro.json",
    "sourceSha256": "f8a87cdc2f947ba4d066bdae6ad0bf139cc5df4c0b1b8baa316b59ff45e1eabc",
    "fileMatch": [
      "**/.config/micro/settings.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "autoindent": {
      "description": "Whether to use the same indentation as a previous line\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "autosave": {
      "description": "A delay between automatic saves\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "integer",
      "minimum": 0,
      "default": 0
    },
    "autosu": {
      "description": "Whether attempt to use super user privileges\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "backup": {
      "description": "Whether to backup all open buffers\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "backupdir": {
      "description": "A directory to store backups\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "default": ""
    },
    "basename": {
      "description": "Whether to show a basename instead of a full path\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "clipboard": {
      "description": "A way to access the system clipboard\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "enum": [
        "external",
        "terminal",
        "internal"
      ],
      "default": "external"
    },
    "colorcolumn": {
      "description": "A position to display a column\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "integer",
      "minimum": 0,
      "default": 0
    },
    "colorscheme": {
      "description": "A color scheme\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "enum": [
        "atom-dark",
        "bubblegum",
        "cmc-16",
        "cmc-tc",
        "darcula",
        "default",
        "dracula-tc",
        "dukedark-tc",
        "dukelight-tc",
        "dukeubuntu-tc",
        "geany",
        "gotham",
        "gruvbox",
        "gruvbox-tc",
        "material-tc",
        "monokai-dark",
        "monokai",
        "one-dark",
        "railscast",
        "simple",
        "solarized",
        "solarized-tc",
        "sunny-day",
        "twilight",
        "zenburn"
      ],
      "default": "default"
    },
    "cursorline": {
      "description": "Whether to highlight a line with a cursor with a different color\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "diffgutter": {
      "description": "Whether to display diff inticators before lines\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "divchars": {
      "description": "Divider chars for vertical and horizontal splits\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "default": "|-"
    },
    "divreverse": {
      "description": "Whether to use inversed color scheme colors for splits\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "encoding": {
      "description": "An encoding used to open and save files\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "default": "utf-8"
    },
    "eofnewline": {
      "description": "Whether to add a missing trailing new line\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "fastdirty": {
      "description": "Whether to use a fast algorithm to determine whether a file is changed\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "fileformat": {
      "description": "A line ending format\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "enum": [
        "unix",
        "dos"
      ],
      "default": "unix"
    },
    "filetype": {
      "description": "A filetype for the current buffer\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "default": "unknown"
    },
    "hlsearch": {
      "description": "Whether to highlight all instances of a searched text after a successful search\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "incsearch": {
      "description": "Whether to enable an incremental search in `Find` prompt\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "ignorecase": {
      "description": "Whether to perform case-insensitive searches\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "indentchar": {
      "description": "An indentation character\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "maxLength": 1,
      "default": " "
    },
    "infobar": {
      "description": "Whether to enable a line at the bottom where messages are printed\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "keepautoindent": {
      "description": "Whether add a whitespace while using autoindent\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "keymenu": {
      "description": "Whether to display nano-style key menu at the bottom\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "matchbrace": {
      "description": "Whether to show matching braces\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "matchbracestyle": {
      "description": "Whether to underline or highlight matching braces\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "enum": [
        "underline",
        "highlight"
      ],
      "default": "underline"
    },
    "mkparents": {
      "description": "Whether to create missing directories\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "mouse": {
      "description": "Whether to enable mouse support\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "paste": {
      "description": "Whether to treat characters sent from the terminal in a single chunk as a paste event\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "parsecursor": {
      "description": "Whether to extract a line number and a column to open files with from file names\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "permbackup": {
      "description": "Whether to permanently save backups\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "pluginchannels": {
      "description": "A file with list of plugin channels\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "default": "https://raw.githubusercontent.com/micro-editor/plugin-channel/master/channel.json"
    },
    "pluginrepos": {
      "description": "Plugin repositories\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "description": "A pluging repository\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
        "type": "string"
      },
      "default": []
    },
    "readonly": {
      "description": "Whether to forbid buffer editing\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "rmtrailingws": {
      "description": "Whether to remove trailing whitespaces\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "ruler": {
      "description": "Whether to display line numbers\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "relativeruler": {
      "description": "Whether to display relative line numbers\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "savecursor": {
      "description": "Whether to save cursor position in files\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "savehistory": {
      "description": "Whether to save command history between closing and re-opening editor\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "saveundo": {
      "description": "Whether to save undo after closing file\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "scrollbar": {
      "description": "Whether to save undo after closing file\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "scrollmargin": {
      "description": "A margin at which a view starts scrolling when a cursor approaches an edge of a view\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "integer",
      "default": 3
    },
    "scrollspeed": {
      "description": "Line count to scroll for one scroll event\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "integer",
      "default": 2
    },
    "smartpaste": {
      "description": "Whether to add a leading whitespace while pasting multiple lines\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "softwrap": {
      "description": "Whether to wrap long lines\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "splitbottom": {
      "description": "Whether to create a new horizontal split below the current one\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "splitright": {
      "description": "Whether to create a new vertical split right of the current one\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "statusformatl": {
      "description": "Format string of left-justified part of the statusline\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "default": "$(filename) $(modified)($(line),$(col)) $(status.paste)| ft:$(opt:filetype) | $(opt:fileformat) | $(opt:encoding)"
    },
    "statusformatr": {
      "description": "Format string of right-justified part of the statusline\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "default": "$(bind:ToggleKeyMenu): bindings, $(bind:ToggleHelp): help"
    },
    "statusline": {
      "description": "Whether to display a status line\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "sucmd": {
      "description": "A super user command\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "string",
      "default": "sudo",
      "examples": [
        "sudo",
        "doas"
      ]
    },
    "syntax": {
      "description": "Whether to enable a syntax highlighting\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "tabmovement": {
      "description": "Whether to navigate spaces at the beginning of lines as if they are tabs\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "tabhighlight": {
      "description": "Whether to invert tab character colors\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "tabreverse": {
      "description": "Whether to reverse tab bar colors\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "tabsize": {
      "description": "A tab size\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "integer",
      "default": 4
    },
    "tabstospaces": {
      "description": "Whether to use spaces instead of tabs\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "useprimary": {
      "description": "Whether to use primary clipboard to copy selections in the background\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": true
    },
    "wordwrap": {
      "description": "Whether to wrap long lines by words\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    },
    "xterm": {
      "description": "Whether to assume that the current terminal is `xterm`\n<https://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options>",
      "type": "boolean",
      "default": false
    }
  },
  "$comment": "https://github.com/micro-editor/micro",
  "additionalProperties": false
}
