Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,11 @@
"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.statusBarCursor": {
"type": "string",
"description": "The character to use as the cursor in the status bar (e.g. during search or command line mode).",
"default": "|"
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions src/configuration/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ class Configuration implements IConfiguration {
replace: ['#000000', '#ffffff'],
};

statusBarCursor = '|';

searchHighlightColor = '';
searchHighlightTextColor = '';

Expand Down
1 change: 1 addition & 0 deletions src/configuration/iconfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export interface IConfiguration {
* Status bar colors to change to based on mode
*/
statusBarColors: IModeSpecificStrings<string | string[]>;
statusBarCursor: string;

/**
* Color of search highlights.
Expand Down
2 changes: 1 addition & 1 deletion src/statusBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function statusBarText(vimState: VimState) {
const cursorChar =
vimState.recordedState.actionKeys[vimState.recordedState.actionKeys.length - 1] === '<C-r>'
? '"'
: '|';
: configuration.statusBarCursor;
switch (vimState.modeData.mode) {
case Mode.Normal:
return '-- NORMAL --';
Expand Down
1 change: 1 addition & 0 deletions test/testConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class Configuration implements IConfiguration {
visualblock: '#A3BE8C',
replace: '#D08770',
};
statusBarCursor = '|';
searchHighlightColor = 'rgba(150, 150, 255, 0.3)';
searchHighlightTextColor = '';
searchMatchColor = 'rgba(255, 150, 150, 0.3)';
Expand Down