diff --git a/package.json b/package.json index a2e906bd430..3da08e05d2d 100644 --- a/package.json +++ b/package.json @@ -1153,6 +1153,56 @@ "vim.langmap": { "type": "string", "description": "Language map for alternate keyboard layouts. When you are typing text in Insert (or Replace, etc.) mode, the characters are inserted derectly. Otherwise, they are translated based on the provided map." + }, + "vim.statusBarText.normal": { + "type": "string", + "description": "Text to display in the status bar when in Normal mode.", + "default": "-- NORMAL --" + }, + "vim.statusBarText.insert": { + "type": "string", + "description": "Text to display in the status bar when in Insert mode.", + "default": "-- INSERT --" + }, + "vim.statusBarText.visual": { + "type": "string", + "description": "Text to display in the status bar when in Visual mode.", + "default": "-- VISUAL --" + }, + "vim.statusBarText.visualBlock": { + "type": "string", + "description": "Text to display in the status bar when in Visual Block mode.", + "default": "-- VISUAL BLOCK --" + }, + "vim.statusBarText.visualLine": { + "type": "string", + "description": "Text to display in the status bar when in Visual Line mode.", + "default": "-- VISUAL LINE --" + }, + "vim.statusBarText.replace": { + "type": "string", + "description": "Text to display in the status bar when in Replace mode.", + "default": "-- REPLACE --" + }, + "vim.statusBarText.easyMotion": { + "type": "string", + "description": "Text to display in the status bar when in Easy Motion mode.", + "default": "-- EASYMOTION --" + }, + "vim.statusBarText.easyMotionInput": { + "type": "string", + "description": "Text to display in the status bar when in Easy Motion Input mode.", + "default": "-- EASYMOTION INPUT --" + }, + "vim.statusBarText.surroundInput": { + "type": "string", + "description": "Text to display in the status bar when in Surround Input mode.", + "default": "-- SURROUND INPUT --" + }, + "vim.statusBarText.vimDisabled": { + "type": "string", + "description": "Text to display in the status bar when in Vim Disabled mode.", + "default": "-- VIM DISABLED --" } } }, diff --git a/src/configuration/configuration.ts b/src/configuration/configuration.ts index 0f0f53ac158..cfd3e7816ee 100644 --- a/src/configuration/configuration.ts +++ b/src/configuration/configuration.ts @@ -328,6 +328,19 @@ class Configuration implements IConfiguration { replace: ['#000000', '#ffffff'], }; + statusBarText = { + normal: '-- NORMAL --', + insert: '-- INSERT --', + visual: '-- VISUAL --', + visualBlock: '-- VISUAL BLOCK --', + visualLine: '-- VISUAL LINE --', + replace: '-- REPLACE --', + easyMotion: '-- EASYMOTION --', + easyMotionInput: '-- EASYMOTION INPUT --', + surroundInput: '-- SURROUND INPUT --', + vimDisabled: '-- VIM: DISABLED --', + }; + searchHighlightColor = ''; searchHighlightTextColor = ''; diff --git a/src/statusBar.ts b/src/statusBar.ts index 66962988db8..faf938b8a31 100644 --- a/src/statusBar.ts +++ b/src/statusBar.ts @@ -171,25 +171,25 @@ export function statusBarText(vimState: VimState) { : '|'; switch (vimState.modeData.mode) { case Mode.Normal: - return '-- NORMAL --'; + return configuration.statusBarText.normal; case Mode.Insert: - return '-- INSERT --'; + return configuration.statusBarText.insert; case Mode.Visual: - return '-- VISUAL --'; + return configuration.statusBarText.visual; case Mode.VisualBlock: - return '-- VISUAL BLOCK --'; + return configuration.statusBarText.visualBlock; case Mode.VisualLine: - return '-- VISUAL LINE --'; + return configuration.statusBarText.visualLine; case Mode.Replace: - return '-- REPLACE --'; + return configuration.statusBarText.replace; case Mode.EasyMotionMode: - return '-- EASYMOTION --'; + return configuration.statusBarText.easyMotion; case Mode.EasyMotionInputMode: - return '-- EASYMOTION INPUT --'; + return configuration.statusBarText.easyMotionInput; case Mode.SurroundInputMode: - return '-- SURROUND INPUT --'; + return configuration.statusBarText.surroundInput; case Mode.Disabled: - return '-- VIM: DISABLED --'; + return configuration.statusBarText.vimDisabled; case Mode.SearchInProgressMode: return vimState.modeData.commandLine.display(cursorChar); case Mode.CommandlineInProgress: