Apply the tab_size change to keymaps and settings
This commit is contained in:
parent
bed76462e2
commit
eca93c124a
4 changed files with 1111 additions and 1111 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,325 +1,325 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"context": "Editor && VimControl && !VimWaiting",
|
"context": "Editor && VimControl && !VimWaiting",
|
||||||
"bindings": {
|
"bindings": {
|
||||||
"g": [
|
"g": [
|
||||||
"vim::PushOperator",
|
"vim::PushOperator",
|
||||||
{
|
{
|
||||||
"Namespace": "G"
|
"Namespace": "G"
|
||||||
}
|
|
||||||
],
|
|
||||||
"i": [
|
|
||||||
"vim::PushOperator",
|
|
||||||
{
|
|
||||||
"Object": {
|
|
||||||
"around": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"a": [
|
|
||||||
"vim::PushOperator",
|
|
||||||
{
|
|
||||||
"Object": {
|
|
||||||
"around": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"h": "vim::Left",
|
|
||||||
"backspace": "vim::Backspace",
|
|
||||||
"j": "vim::Down",
|
|
||||||
"enter": "vim::NextLineStart",
|
|
||||||
"k": "vim::Up",
|
|
||||||
"l": "vim::Right",
|
|
||||||
"$": "vim::EndOfLine",
|
|
||||||
"shift-g": "vim::EndOfDocument",
|
|
||||||
"w": "vim::NextWordStart",
|
|
||||||
"shift-w": [
|
|
||||||
"vim::NextWordStart",
|
|
||||||
{
|
|
||||||
"ignorePunctuation": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"e": "vim::NextWordEnd",
|
|
||||||
"shift-e": [
|
|
||||||
"vim::NextWordEnd",
|
|
||||||
{
|
|
||||||
"ignorePunctuation": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"b": "vim::PreviousWordStart",
|
|
||||||
"shift-b": [
|
|
||||||
"vim::PreviousWordStart",
|
|
||||||
{
|
|
||||||
"ignorePunctuation": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"%": "vim::Matching",
|
|
||||||
"ctrl-y": [
|
|
||||||
"vim::Scroll",
|
|
||||||
"LineUp"
|
|
||||||
],
|
|
||||||
"f": [
|
|
||||||
"vim::PushOperator",
|
|
||||||
{
|
|
||||||
"FindForward": {
|
|
||||||
"before": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"t": [
|
|
||||||
"vim::PushOperator",
|
|
||||||
{
|
|
||||||
"FindForward": {
|
|
||||||
"before": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"shift-f": [
|
|
||||||
"vim::PushOperator",
|
|
||||||
{
|
|
||||||
"FindBackward": {
|
|
||||||
"after": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"shift-t": [
|
|
||||||
"vim::PushOperator",
|
|
||||||
{
|
|
||||||
"FindBackward": {
|
|
||||||
"after": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"escape": "editor::Cancel",
|
|
||||||
"0": "vim::StartOfLine", // When no number operator present, use start of line motion
|
|
||||||
"1": [
|
|
||||||
"vim::Number",
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"2": [
|
|
||||||
"vim::Number",
|
|
||||||
2
|
|
||||||
],
|
|
||||||
"3": [
|
|
||||||
"vim::Number",
|
|
||||||
3
|
|
||||||
],
|
|
||||||
"4": [
|
|
||||||
"vim::Number",
|
|
||||||
4
|
|
||||||
],
|
|
||||||
"5": [
|
|
||||||
"vim::Number",
|
|
||||||
5
|
|
||||||
],
|
|
||||||
"6": [
|
|
||||||
"vim::Number",
|
|
||||||
6
|
|
||||||
],
|
|
||||||
"7": [
|
|
||||||
"vim::Number",
|
|
||||||
7
|
|
||||||
],
|
|
||||||
"8": [
|
|
||||||
"vim::Number",
|
|
||||||
8
|
|
||||||
],
|
|
||||||
"9": [
|
|
||||||
"vim::Number",
|
|
||||||
9
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
{
|
"i": [
|
||||||
"context": "Editor && vim_mode == normal && vim_operator == none && !VimWaiting",
|
"vim::PushOperator",
|
||||||
"bindings": {
|
{
|
||||||
"c": [
|
"Object": {
|
||||||
"vim::PushOperator",
|
"around": false
|
||||||
"Change"
|
}
|
||||||
],
|
|
||||||
"shift-c": "vim::ChangeToEndOfLine",
|
|
||||||
"d": [
|
|
||||||
"vim::PushOperator",
|
|
||||||
"Delete"
|
|
||||||
],
|
|
||||||
"shift-d": "vim::DeleteToEndOfLine",
|
|
||||||
"y": [
|
|
||||||
"vim::PushOperator",
|
|
||||||
"Yank"
|
|
||||||
],
|
|
||||||
"z": [
|
|
||||||
"vim::PushOperator",
|
|
||||||
{
|
|
||||||
"Namespace": "Z"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"i": [
|
|
||||||
"vim::SwitchMode",
|
|
||||||
"Insert"
|
|
||||||
],
|
|
||||||
"shift-i": "vim::InsertFirstNonWhitespace",
|
|
||||||
"a": "vim::InsertAfter",
|
|
||||||
"shift-a": "vim::InsertEndOfLine",
|
|
||||||
"x": "vim::DeleteRight",
|
|
||||||
"shift-x": "vim::DeleteLeft",
|
|
||||||
"^": "vim::FirstNonWhitespace",
|
|
||||||
"o": "vim::InsertLineBelow",
|
|
||||||
"shift-o": "vim::InsertLineAbove",
|
|
||||||
"v": [
|
|
||||||
"vim::SwitchMode",
|
|
||||||
{
|
|
||||||
"Visual": {
|
|
||||||
"line": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"shift-v": [
|
|
||||||
"vim::SwitchMode",
|
|
||||||
{
|
|
||||||
"Visual": {
|
|
||||||
"line": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"p": "vim::Paste",
|
|
||||||
"u": "editor::Undo",
|
|
||||||
"ctrl-r": "editor::Redo",
|
|
||||||
"ctrl-o": "pane::GoBack",
|
|
||||||
"/": [
|
|
||||||
"buffer_search::Deploy",
|
|
||||||
{
|
|
||||||
"focus": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"ctrl-f": [
|
|
||||||
"vim::Scroll",
|
|
||||||
"PageDown"
|
|
||||||
],
|
|
||||||
"ctrl-b": [
|
|
||||||
"vim::Scroll",
|
|
||||||
"PageUp"
|
|
||||||
],
|
|
||||||
"ctrl-d": [
|
|
||||||
"vim::Scroll",
|
|
||||||
"HalfPageDown"
|
|
||||||
],
|
|
||||||
"ctrl-u": [
|
|
||||||
"vim::Scroll",
|
|
||||||
"HalfPageUp"
|
|
||||||
],
|
|
||||||
"ctrl-e": [
|
|
||||||
"vim::Scroll",
|
|
||||||
"LineDown"
|
|
||||||
],
|
|
||||||
"r": [
|
|
||||||
"vim::PushOperator",
|
|
||||||
"Replace"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
{
|
"a": [
|
||||||
"context": "Editor && vim_operator == n",
|
"vim::PushOperator",
|
||||||
"bindings": {
|
{
|
||||||
"0": [
|
"Object": {
|
||||||
"vim::Number",
|
"around": true
|
||||||
0
|
}
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
{
|
"h": "vim::Left",
|
||||||
"context": "Editor && vim_operator == g",
|
"backspace": "vim::Backspace",
|
||||||
"bindings": {
|
"j": "vim::Down",
|
||||||
"g": "vim::StartOfDocument",
|
"enter": "vim::NextLineStart",
|
||||||
"h": "editor::Hover",
|
"k": "vim::Up",
|
||||||
"escape": [
|
"l": "vim::Right",
|
||||||
"vim::SwitchMode",
|
"$": "vim::EndOfLine",
|
||||||
"Normal"
|
"shift-g": "vim::EndOfDocument",
|
||||||
],
|
"w": "vim::NextWordStart",
|
||||||
"d": "editor::GoToDefinition"
|
"shift-w": [
|
||||||
|
"vim::NextWordStart",
|
||||||
|
{
|
||||||
|
"ignorePunctuation": true
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
{
|
"e": "vim::NextWordEnd",
|
||||||
"context": "Editor && vim_operator == c",
|
"shift-e": [
|
||||||
"bindings": {
|
"vim::NextWordEnd",
|
||||||
"c": "vim::CurrentLine"
|
{
|
||||||
|
"ignorePunctuation": true
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
{
|
"b": "vim::PreviousWordStart",
|
||||||
"context": "Editor && vim_operator == d",
|
"shift-b": [
|
||||||
"bindings": {
|
"vim::PreviousWordStart",
|
||||||
"d": "vim::CurrentLine"
|
{
|
||||||
|
"ignorePunctuation": true
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
{
|
"%": "vim::Matching",
|
||||||
"context": "Editor && vim_operator == y",
|
"ctrl-y": [
|
||||||
"bindings": {
|
"vim::Scroll",
|
||||||
"y": "vim::CurrentLine"
|
"LineUp"
|
||||||
|
],
|
||||||
|
"f": [
|
||||||
|
"vim::PushOperator",
|
||||||
|
{
|
||||||
|
"FindForward": {
|
||||||
|
"before": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
{
|
"t": [
|
||||||
"context": "Editor && vim_operator == z",
|
"vim::PushOperator",
|
||||||
"bindings": {
|
{
|
||||||
"t": "editor::ScrollCursorTop",
|
"FindForward": {
|
||||||
"z": "editor::ScrollCursorCenter",
|
"before": true
|
||||||
"b": "editor::ScrollCursorBottom",
|
}
|
||||||
"escape": [
|
|
||||||
"vim::SwitchMode",
|
|
||||||
"Normal"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
{
|
"shift-f": [
|
||||||
"context": "Editor && VimObject",
|
"vim::PushOperator",
|
||||||
"bindings": {
|
{
|
||||||
"w": "vim::Word",
|
"FindBackward": {
|
||||||
"shift-w": [
|
"after": false
|
||||||
"vim::Word",
|
}
|
||||||
{
|
|
||||||
"ignorePunctuation": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"s": "vim::Sentence",
|
|
||||||
"'": "vim::Quotes",
|
|
||||||
"`": "vim::BackQuotes",
|
|
||||||
"\"": "vim::DoubleQuotes",
|
|
||||||
"(": "vim::Parentheses",
|
|
||||||
")": "vim::Parentheses",
|
|
||||||
"[": "vim::SquareBrackets",
|
|
||||||
"]": "vim::SquareBrackets",
|
|
||||||
"{": "vim::CurlyBrackets",
|
|
||||||
"}": "vim::CurlyBrackets",
|
|
||||||
"<": "vim::AngleBrackets",
|
|
||||||
">": "vim::AngleBrackets"
|
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
{
|
"shift-t": [
|
||||||
"context": "Editor && vim_mode == visual && !VimWaiting",
|
"vim::PushOperator",
|
||||||
"bindings": {
|
{
|
||||||
"u": "editor::Undo",
|
"FindBackward": {
|
||||||
"c": "vim::VisualChange",
|
"after": true
|
||||||
"d": "vim::VisualDelete",
|
}
|
||||||
"x": "vim::VisualDelete",
|
|
||||||
"y": "vim::VisualYank",
|
|
||||||
"p": "vim::VisualPaste",
|
|
||||||
"r": [
|
|
||||||
"vim::PushOperator",
|
|
||||||
"Replace"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"context": "Editor && vim_mode == insert",
|
|
||||||
"bindings": {
|
|
||||||
"escape": "vim::NormalBefore",
|
|
||||||
"ctrl-c": "vim::NormalBefore"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"context": "Editor && VimWaiting",
|
|
||||||
"bindings": {
|
|
||||||
"tab": "vim::Tab",
|
|
||||||
"enter": "vim::Enter",
|
|
||||||
"escape": "editor::Cancel"
|
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"escape": "editor::Cancel",
|
||||||
|
"0": "vim::StartOfLine", // When no number operator present, use start of line motion
|
||||||
|
"1": [
|
||||||
|
"vim::Number",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"2": [
|
||||||
|
"vim::Number",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"3": [
|
||||||
|
"vim::Number",
|
||||||
|
3
|
||||||
|
],
|
||||||
|
"4": [
|
||||||
|
"vim::Number",
|
||||||
|
4
|
||||||
|
],
|
||||||
|
"5": [
|
||||||
|
"vim::Number",
|
||||||
|
5
|
||||||
|
],
|
||||||
|
"6": [
|
||||||
|
"vim::Number",
|
||||||
|
6
|
||||||
|
],
|
||||||
|
"7": [
|
||||||
|
"vim::Number",
|
||||||
|
7
|
||||||
|
],
|
||||||
|
"8": [
|
||||||
|
"vim::Number",
|
||||||
|
8
|
||||||
|
],
|
||||||
|
"9": [
|
||||||
|
"vim::Number",
|
||||||
|
9
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_mode == normal && vim_operator == none && !VimWaiting",
|
||||||
|
"bindings": {
|
||||||
|
"c": [
|
||||||
|
"vim::PushOperator",
|
||||||
|
"Change"
|
||||||
|
],
|
||||||
|
"shift-c": "vim::ChangeToEndOfLine",
|
||||||
|
"d": [
|
||||||
|
"vim::PushOperator",
|
||||||
|
"Delete"
|
||||||
|
],
|
||||||
|
"shift-d": "vim::DeleteToEndOfLine",
|
||||||
|
"y": [
|
||||||
|
"vim::PushOperator",
|
||||||
|
"Yank"
|
||||||
|
],
|
||||||
|
"z": [
|
||||||
|
"vim::PushOperator",
|
||||||
|
{
|
||||||
|
"Namespace": "Z"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"i": [
|
||||||
|
"vim::SwitchMode",
|
||||||
|
"Insert"
|
||||||
|
],
|
||||||
|
"shift-i": "vim::InsertFirstNonWhitespace",
|
||||||
|
"a": "vim::InsertAfter",
|
||||||
|
"shift-a": "vim::InsertEndOfLine",
|
||||||
|
"x": "vim::DeleteRight",
|
||||||
|
"shift-x": "vim::DeleteLeft",
|
||||||
|
"^": "vim::FirstNonWhitespace",
|
||||||
|
"o": "vim::InsertLineBelow",
|
||||||
|
"shift-o": "vim::InsertLineAbove",
|
||||||
|
"v": [
|
||||||
|
"vim::SwitchMode",
|
||||||
|
{
|
||||||
|
"Visual": {
|
||||||
|
"line": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"shift-v": [
|
||||||
|
"vim::SwitchMode",
|
||||||
|
{
|
||||||
|
"Visual": {
|
||||||
|
"line": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"p": "vim::Paste",
|
||||||
|
"u": "editor::Undo",
|
||||||
|
"ctrl-r": "editor::Redo",
|
||||||
|
"ctrl-o": "pane::GoBack",
|
||||||
|
"/": [
|
||||||
|
"buffer_search::Deploy",
|
||||||
|
{
|
||||||
|
"focus": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ctrl-f": [
|
||||||
|
"vim::Scroll",
|
||||||
|
"PageDown"
|
||||||
|
],
|
||||||
|
"ctrl-b": [
|
||||||
|
"vim::Scroll",
|
||||||
|
"PageUp"
|
||||||
|
],
|
||||||
|
"ctrl-d": [
|
||||||
|
"vim::Scroll",
|
||||||
|
"HalfPageDown"
|
||||||
|
],
|
||||||
|
"ctrl-u": [
|
||||||
|
"vim::Scroll",
|
||||||
|
"HalfPageUp"
|
||||||
|
],
|
||||||
|
"ctrl-e": [
|
||||||
|
"vim::Scroll",
|
||||||
|
"LineDown"
|
||||||
|
],
|
||||||
|
"r": [
|
||||||
|
"vim::PushOperator",
|
||||||
|
"Replace"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_operator == n",
|
||||||
|
"bindings": {
|
||||||
|
"0": [
|
||||||
|
"vim::Number",
|
||||||
|
0
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_operator == g",
|
||||||
|
"bindings": {
|
||||||
|
"g": "vim::StartOfDocument",
|
||||||
|
"h": "editor::Hover",
|
||||||
|
"escape": [
|
||||||
|
"vim::SwitchMode",
|
||||||
|
"Normal"
|
||||||
|
],
|
||||||
|
"d": "editor::GoToDefinition"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_operator == c",
|
||||||
|
"bindings": {
|
||||||
|
"c": "vim::CurrentLine"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_operator == d",
|
||||||
|
"bindings": {
|
||||||
|
"d": "vim::CurrentLine"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_operator == y",
|
||||||
|
"bindings": {
|
||||||
|
"y": "vim::CurrentLine"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_operator == z",
|
||||||
|
"bindings": {
|
||||||
|
"t": "editor::ScrollCursorTop",
|
||||||
|
"z": "editor::ScrollCursorCenter",
|
||||||
|
"b": "editor::ScrollCursorBottom",
|
||||||
|
"escape": [
|
||||||
|
"vim::SwitchMode",
|
||||||
|
"Normal"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && VimObject",
|
||||||
|
"bindings": {
|
||||||
|
"w": "vim::Word",
|
||||||
|
"shift-w": [
|
||||||
|
"vim::Word",
|
||||||
|
{
|
||||||
|
"ignorePunctuation": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"s": "vim::Sentence",
|
||||||
|
"'": "vim::Quotes",
|
||||||
|
"`": "vim::BackQuotes",
|
||||||
|
"\"": "vim::DoubleQuotes",
|
||||||
|
"(": "vim::Parentheses",
|
||||||
|
")": "vim::Parentheses",
|
||||||
|
"[": "vim::SquareBrackets",
|
||||||
|
"]": "vim::SquareBrackets",
|
||||||
|
"{": "vim::CurlyBrackets",
|
||||||
|
"}": "vim::CurlyBrackets",
|
||||||
|
"<": "vim::AngleBrackets",
|
||||||
|
">": "vim::AngleBrackets"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_mode == visual && !VimWaiting",
|
||||||
|
"bindings": {
|
||||||
|
"u": "editor::Undo",
|
||||||
|
"c": "vim::VisualChange",
|
||||||
|
"d": "vim::VisualDelete",
|
||||||
|
"x": "vim::VisualDelete",
|
||||||
|
"y": "vim::VisualYank",
|
||||||
|
"p": "vim::VisualPaste",
|
||||||
|
"r": [
|
||||||
|
"vim::PushOperator",
|
||||||
|
"Replace"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && vim_mode == insert",
|
||||||
|
"bindings": {
|
||||||
|
"escape": "vim::NormalBefore",
|
||||||
|
"ctrl-c": "vim::NormalBefore"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"context": "Editor && VimWaiting",
|
||||||
|
"bindings": {
|
||||||
|
"tab": "vim::Tab",
|
||||||
|
"enter": "vim::Enter",
|
||||||
|
"escape": "editor::Cancel"
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
|
@ -1,257 +1,257 @@
|
||||||
{
|
{
|
||||||
// The name of the Zed theme to use for the UI
|
// The name of the Zed theme to use for the UI
|
||||||
"theme": "One Dark",
|
"theme": "One Dark",
|
||||||
// Features that can be globally enabled or disabled
|
// Features that can be globally enabled or disabled
|
||||||
"features": {
|
"features": {
|
||||||
// Show Copilot icon in status bar
|
// Show Copilot icon in status bar
|
||||||
"copilot": true
|
"copilot": true
|
||||||
},
|
},
|
||||||
// The name of a font to use for rendering text in the editor
|
// The name of a font to use for rendering text in the editor
|
||||||
"buffer_font_family": "Zed Mono",
|
"buffer_font_family": "Zed Mono",
|
||||||
// The OpenType features to enable for text in the editor.
|
// The OpenType features to enable for text in the editor.
|
||||||
"buffer_font_features": {
|
"buffer_font_features": {
|
||||||
// Disable ligatures:
|
// Disable ligatures:
|
||||||
// "calt": false
|
// "calt": false
|
||||||
},
|
},
|
||||||
// The default font size for text in the editor
|
// The default font size for text in the editor
|
||||||
"buffer_font_size": 15,
|
"buffer_font_size": 15,
|
||||||
// The factor to grow the active pane by. Defaults to 1.0
|
// The factor to grow the active pane by. Defaults to 1.0
|
||||||
// which gives the same size as all other panes.
|
// which gives the same size as all other panes.
|
||||||
"active_pane_magnification": 1.0,
|
"active_pane_magnification": 1.0,
|
||||||
// Whether to enable vim modes and key bindings
|
// Whether to enable vim modes and key bindings
|
||||||
"vim_mode": false,
|
"vim_mode": false,
|
||||||
// Whether to show the informational hover box when moving the mouse
|
// Whether to show the informational hover box when moving the mouse
|
||||||
// over symbols in the editor.
|
// over symbols in the editor.
|
||||||
"hover_popover_enabled": true,
|
"hover_popover_enabled": true,
|
||||||
// Whether to confirm before quitting Zed.
|
// Whether to confirm before quitting Zed.
|
||||||
"confirm_quit": false,
|
"confirm_quit": false,
|
||||||
// Whether the cursor blinks in the editor.
|
// Whether the cursor blinks in the editor.
|
||||||
"cursor_blink": true,
|
"cursor_blink": true,
|
||||||
// Whether to pop the completions menu while typing in an editor without
|
// Whether to pop the completions menu while typing in an editor without
|
||||||
// explicitly requesting it.
|
// explicitly requesting it.
|
||||||
"show_completions_on_input": true,
|
"show_completions_on_input": true,
|
||||||
// Controls whether copilot provides suggestion immediately
|
// Controls whether copilot provides suggestion immediately
|
||||||
// or waits for a `copilot::Toggle`
|
// or waits for a `copilot::Toggle`
|
||||||
"show_copilot_suggestions": true,
|
"show_copilot_suggestions": true,
|
||||||
// Whether the screen sharing icon is shown in the os status bar.
|
// Whether the screen sharing icon is shown in the os status bar.
|
||||||
"show_call_status_icon": true,
|
"show_call_status_icon": true,
|
||||||
// Whether to use language servers to provide code intelligence.
|
// Whether to use language servers to provide code intelligence.
|
||||||
"enable_language_server": true,
|
"enable_language_server": true,
|
||||||
// When to automatically save edited buffers. This setting can
|
// When to automatically save edited buffers. This setting can
|
||||||
// take four values.
|
// take four values.
|
||||||
//
|
//
|
||||||
// 1. Never automatically save:
|
// 1. Never automatically save:
|
||||||
// "autosave": "off",
|
// "autosave": "off",
|
||||||
// 2. Save when changing focus away from the Zed window:
|
// 2. Save when changing focus away from the Zed window:
|
||||||
// "autosave": "on_window_change",
|
// "autosave": "on_window_change",
|
||||||
// 3. Save when changing focus away from a specific buffer:
|
// 3. Save when changing focus away from a specific buffer:
|
||||||
// "autosave": "on_focus_change",
|
// "autosave": "on_focus_change",
|
||||||
// 4. Save when idle for a certain amount of time:
|
// 4. Save when idle for a certain amount of time:
|
||||||
// "autosave": { "after_delay": {"milliseconds": 500} },
|
// "autosave": { "after_delay": {"milliseconds": 500} },
|
||||||
"autosave": "off",
|
"autosave": "off",
|
||||||
// Where to place the dock by default. This setting can take three
|
// Where to place the dock by default. This setting can take three
|
||||||
// values:
|
// values:
|
||||||
//
|
//
|
||||||
// 1. Position the dock attached to the bottom of the workspace
|
// 1. Position the dock attached to the bottom of the workspace
|
||||||
// "default_dock_anchor": "bottom"
|
// "default_dock_anchor": "bottom"
|
||||||
// 2. Position the dock to the right of the workspace like a side panel
|
// 2. Position the dock to the right of the workspace like a side panel
|
||||||
// "default_dock_anchor": "right"
|
// "default_dock_anchor": "right"
|
||||||
// 3. Position the dock full screen over the entire workspace"
|
// 3. Position the dock full screen over the entire workspace"
|
||||||
// "default_dock_anchor": "expanded"
|
// "default_dock_anchor": "expanded"
|
||||||
"default_dock_anchor": "bottom",
|
"default_dock_anchor": "bottom",
|
||||||
// Whether or not to remove any trailing whitespace from lines of a buffer
|
// Whether or not to remove any trailing whitespace from lines of a buffer
|
||||||
// before saving it.
|
// before saving it.
|
||||||
"remove_trailing_whitespace_on_save": true,
|
"remove_trailing_whitespace_on_save": true,
|
||||||
// Whether or not to ensure there's a single newline at the end of a buffer
|
// Whether or not to ensure there's a single newline at the end of a buffer
|
||||||
// when saving it.
|
// when saving it.
|
||||||
"ensure_final_newline_on_save": true,
|
"ensure_final_newline_on_save": true,
|
||||||
// Whether or not to perform a buffer format before saving
|
// Whether or not to perform a buffer format before saving
|
||||||
"format_on_save": "on",
|
"format_on_save": "on",
|
||||||
// How to perform a buffer format. This setting can take two values:
|
// How to perform a buffer format. This setting can take two values:
|
||||||
//
|
//
|
||||||
// 1. Format code using the current language server:
|
// 1. Format code using the current language server:
|
||||||
// "format_on_save": "language_server"
|
// "format_on_save": "language_server"
|
||||||
// 2. Format code using an external command:
|
// 2. Format code using an external command:
|
||||||
// "format_on_save": {
|
// "format_on_save": {
|
||||||
// "external": {
|
// "external": {
|
||||||
// "command": "prettier",
|
// "command": "prettier",
|
||||||
// "arguments": ["--stdin-filepath", "{buffer_path}"]
|
// "arguments": ["--stdin-filepath", "{buffer_path}"]
|
||||||
// }
|
// }
|
||||||
|
// }
|
||||||
|
"formatter": "language_server",
|
||||||
|
// How to soft-wrap long lines of text. This setting can take
|
||||||
|
// three values:
|
||||||
|
//
|
||||||
|
// 1. Do not soft wrap.
|
||||||
|
// "soft_wrap": "none",
|
||||||
|
// 2. Soft wrap lines that overflow the editor:
|
||||||
|
// "soft_wrap": "editor_width",
|
||||||
|
// 3. Soft wrap lines at the preferred line length
|
||||||
|
// "soft_wrap": "preferred_line_length",
|
||||||
|
"soft_wrap": "none",
|
||||||
|
// The column at which to soft-wrap lines, for buffers where soft-wrap
|
||||||
|
// is enabled.
|
||||||
|
"preferred_line_length": 80,
|
||||||
|
// Whether to indent lines using tab characters, as opposed to multiple
|
||||||
|
// spaces.
|
||||||
|
"hard_tabs": false,
|
||||||
|
// How many columns a tab should occupy.
|
||||||
|
"tab_size": 4,
|
||||||
|
// Control what info is collected by Zed.
|
||||||
|
"telemetry": {
|
||||||
|
// Send debug info like crash reports.
|
||||||
|
"diagnostics": true,
|
||||||
|
// Send anonymized usage data like what languages you're using Zed with.
|
||||||
|
"metrics": true
|
||||||
|
},
|
||||||
|
// Automatically update Zed
|
||||||
|
"auto_update": true,
|
||||||
|
// Git gutter behavior configuration.
|
||||||
|
"git": {
|
||||||
|
// Control whether the git gutter is shown. May take 2 values:
|
||||||
|
// 1. Show the gutter
|
||||||
|
// "git_gutter": "tracked_files"
|
||||||
|
// 2. Hide the gutter
|
||||||
|
// "git_gutter": "hide"
|
||||||
|
"git_gutter": "tracked_files"
|
||||||
|
},
|
||||||
|
// Settings specific to journaling
|
||||||
|
"journal": {
|
||||||
|
// The path of the directory where journal entries are stored
|
||||||
|
"path": "~",
|
||||||
|
// What format to display the hours in
|
||||||
|
// May take 2 values:
|
||||||
|
// 1. hour12
|
||||||
|
// 2. hour24
|
||||||
|
"hour_format": "hour12"
|
||||||
|
},
|
||||||
|
// Settings specific to the terminal
|
||||||
|
"terminal": {
|
||||||
|
// What shell to use when opening a terminal. May take 3 values:
|
||||||
|
// 1. Use the system's default terminal configuration in /etc/passwd
|
||||||
|
// "shell": "system"
|
||||||
|
// 2. A program:
|
||||||
|
// "shell": {
|
||||||
|
// "program": "sh"
|
||||||
|
// }
|
||||||
|
// 3. A program with arguments:
|
||||||
|
// "shell": {
|
||||||
|
// "with_arguments": {
|
||||||
|
// "program": "/bin/bash",
|
||||||
|
// "arguments": ["--login"]
|
||||||
|
// }
|
||||||
// }
|
// }
|
||||||
"formatter": "language_server",
|
"shell": "system",
|
||||||
// How to soft-wrap long lines of text. This setting can take
|
// What working directory to use when launching the terminal.
|
||||||
// three values:
|
// May take 4 values:
|
||||||
|
// 1. Use the current file's project directory. Will Fallback to the
|
||||||
|
// first project directory strategy if unsuccessful
|
||||||
|
// "working_directory": "current_project_directory"
|
||||||
|
// 2. Use the first project in this workspace's directory
|
||||||
|
// "working_directory": "first_project_directory"
|
||||||
|
// 3. Always use this platform's home directory (if we can find it)
|
||||||
|
// "working_directory": "always_home"
|
||||||
|
// 4. Always use a specific directory. This value will be shell expanded.
|
||||||
|
// If this path is not a valid directory the terminal will default to
|
||||||
|
// this platform's home directory (if we can find it)
|
||||||
|
// "working_directory": {
|
||||||
|
// "always": {
|
||||||
|
// "directory": "~/zed/projects/"
|
||||||
|
// }
|
||||||
|
// }
|
||||||
//
|
//
|
||||||
// 1. Do not soft wrap.
|
//
|
||||||
// "soft_wrap": "none",
|
"working_directory": "current_project_directory",
|
||||||
// 2. Soft wrap lines that overflow the editor:
|
// Set the cursor blinking behavior in the terminal.
|
||||||
// "soft_wrap": "editor_width",
|
// May take 4 values:
|
||||||
// 3. Soft wrap lines at the preferred line length
|
// 1. Never blink the cursor, ignoring the terminal mode
|
||||||
// "soft_wrap": "preferred_line_length",
|
// "blinking": "off",
|
||||||
"soft_wrap": "none",
|
// 2. Default the cursor blink to off, but allow the terminal to
|
||||||
// The column at which to soft-wrap lines, for buffers where soft-wrap
|
// set blinking
|
||||||
// is enabled.
|
// "blinking": "terminal_controlled",
|
||||||
"preferred_line_length": 80,
|
// 3. Always blink the cursor, ignoring the terminal mode
|
||||||
// Whether to indent lines using tab characters, as opposed to multiple
|
// "blinking": "on",
|
||||||
// spaces.
|
"blinking": "terminal_controlled",
|
||||||
"hard_tabs": false,
|
// Set whether Alternate Scroll mode (code: ?1007) is active by default.
|
||||||
// How many columns a tab should occupy.
|
// Alternate Scroll mode converts mouse scroll events into up / down key
|
||||||
"tab_size": 4,
|
// presses when in the alternate screen (e.g. when running applications
|
||||||
// Control what info is collected by Zed.
|
// like vim or less). The terminal can still set and unset this mode.
|
||||||
"telemetry": {
|
// May take 2 values:
|
||||||
// Send debug info like crash reports.
|
// 1. Default alternate scroll mode to on
|
||||||
"diagnostics": true,
|
// "alternate_scroll": "on",
|
||||||
// Send anonymized usage data like what languages you're using Zed with.
|
// 2. Default alternate scroll mode to off
|
||||||
"metrics": true
|
// "alternate_scroll": "off",
|
||||||
},
|
"alternate_scroll": "off",
|
||||||
// Automatically update Zed
|
// Set whether the option key behaves as the meta key.
|
||||||
"auto_update": true,
|
// May take 2 values:
|
||||||
// Git gutter behavior configuration.
|
// 1. Rely on default platform handling of option key, on macOS
|
||||||
"git": {
|
// this means generating certain unicode characters
|
||||||
// Control whether the git gutter is shown. May take 2 values:
|
// "option_to_meta": false,
|
||||||
// 1. Show the gutter
|
// 2. Make the option keys behave as a 'meta' key, e.g. for emacs
|
||||||
// "git_gutter": "tracked_files"
|
// "option_to_meta": true,
|
||||||
// 2. Hide the gutter
|
"option_as_meta": false,
|
||||||
// "git_gutter": "hide"
|
// Whether or not selecting text in the terminal will automatically
|
||||||
"git_gutter": "tracked_files"
|
// copy to the system clipboard.
|
||||||
},
|
"copy_on_select": false,
|
||||||
// Settings specific to journaling
|
// Any key-value pairs added to this list will be added to the terminal's
|
||||||
"journal": {
|
// enviroment. Use `:` to seperate multiple values.
|
||||||
// The path of the directory where journal entries are stored
|
"env": {
|
||||||
"path": "~",
|
// "KEY": "value1:value2"
|
||||||
// What format to display the hours in
|
|
||||||
// May take 2 values:
|
|
||||||
// 1. hour12
|
|
||||||
// 2. hour24
|
|
||||||
"hour_format": "hour12"
|
|
||||||
},
|
|
||||||
// Settings specific to the terminal
|
|
||||||
"terminal": {
|
|
||||||
// What shell to use when opening a terminal. May take 3 values:
|
|
||||||
// 1. Use the system's default terminal configuration in /etc/passwd
|
|
||||||
// "shell": "system"
|
|
||||||
// 2. A program:
|
|
||||||
// "shell": {
|
|
||||||
// "program": "sh"
|
|
||||||
// }
|
|
||||||
// 3. A program with arguments:
|
|
||||||
// "shell": {
|
|
||||||
// "with_arguments": {
|
|
||||||
// "program": "/bin/bash",
|
|
||||||
// "arguments": ["--login"]
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
"shell": "system",
|
|
||||||
// What working directory to use when launching the terminal.
|
|
||||||
// May take 4 values:
|
|
||||||
// 1. Use the current file's project directory. Will Fallback to the
|
|
||||||
// first project directory strategy if unsuccessful
|
|
||||||
// "working_directory": "current_project_directory"
|
|
||||||
// 2. Use the first project in this workspace's directory
|
|
||||||
// "working_directory": "first_project_directory"
|
|
||||||
// 3. Always use this platform's home directory (if we can find it)
|
|
||||||
// "working_directory": "always_home"
|
|
||||||
// 4. Always use a specific directory. This value will be shell expanded.
|
|
||||||
// If this path is not a valid directory the terminal will default to
|
|
||||||
// this platform's home directory (if we can find it)
|
|
||||||
// "working_directory": {
|
|
||||||
// "always": {
|
|
||||||
// "directory": "~/zed/projects/"
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
//
|
|
||||||
"working_directory": "current_project_directory",
|
|
||||||
// Set the cursor blinking behavior in the terminal.
|
|
||||||
// May take 4 values:
|
|
||||||
// 1. Never blink the cursor, ignoring the terminal mode
|
|
||||||
// "blinking": "off",
|
|
||||||
// 2. Default the cursor blink to off, but allow the terminal to
|
|
||||||
// set blinking
|
|
||||||
// "blinking": "terminal_controlled",
|
|
||||||
// 3. Always blink the cursor, ignoring the terminal mode
|
|
||||||
// "blinking": "on",
|
|
||||||
"blinking": "terminal_controlled",
|
|
||||||
// Set whether Alternate Scroll mode (code: ?1007) is active by default.
|
|
||||||
// Alternate Scroll mode converts mouse scroll events into up / down key
|
|
||||||
// presses when in the alternate screen (e.g. when running applications
|
|
||||||
// like vim or less). The terminal can still set and unset this mode.
|
|
||||||
// May take 2 values:
|
|
||||||
// 1. Default alternate scroll mode to on
|
|
||||||
// "alternate_scroll": "on",
|
|
||||||
// 2. Default alternate scroll mode to off
|
|
||||||
// "alternate_scroll": "off",
|
|
||||||
"alternate_scroll": "off",
|
|
||||||
// Set whether the option key behaves as the meta key.
|
|
||||||
// May take 2 values:
|
|
||||||
// 1. Rely on default platform handling of option key, on macOS
|
|
||||||
// this means generating certain unicode characters
|
|
||||||
// "option_to_meta": false,
|
|
||||||
// 2. Make the option keys behave as a 'meta' key, e.g. for emacs
|
|
||||||
// "option_to_meta": true,
|
|
||||||
"option_as_meta": false,
|
|
||||||
// Whether or not selecting text in the terminal will automatically
|
|
||||||
// copy to the system clipboard.
|
|
||||||
"copy_on_select": false,
|
|
||||||
// Any key-value pairs added to this list will be added to the terminal's
|
|
||||||
// enviroment. Use `:` to seperate multiple values.
|
|
||||||
"env": {
|
|
||||||
// "KEY": "value1:value2"
|
|
||||||
}
|
|
||||||
// Set the terminal's font size. If this option is not included,
|
|
||||||
// the terminal will default to matching the buffer's font size.
|
|
||||||
// "font_size": "15"
|
|
||||||
// Set the terminal's font family. If this option is not included,
|
|
||||||
// the terminal will default to matching the buffer's font family.
|
|
||||||
// "font_family": "Zed Mono"
|
|
||||||
},
|
|
||||||
// Different settings for specific languages.
|
|
||||||
"languages": {
|
|
||||||
"Plain Text": {
|
|
||||||
"soft_wrap": "preferred_line_length"
|
|
||||||
},
|
|
||||||
"Elixir": {
|
|
||||||
"tab_size": 2
|
|
||||||
},
|
|
||||||
"Go": {
|
|
||||||
"tab_size": 4,
|
|
||||||
"hard_tabs": true
|
|
||||||
},
|
|
||||||
"Markdown": {
|
|
||||||
"soft_wrap": "preferred_line_length"
|
|
||||||
},
|
|
||||||
"JavaScript": {
|
|
||||||
"tab_size": 2
|
|
||||||
},
|
|
||||||
"TypeScript": {
|
|
||||||
"tab_size": 2
|
|
||||||
},
|
|
||||||
"TSX": {
|
|
||||||
"tab_size": 2
|
|
||||||
},
|
|
||||||
"YAML": {
|
|
||||||
"tab_size": 2
|
|
||||||
},
|
|
||||||
"JSON": {
|
|
||||||
"tab_size": 2
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// LSP Specific settings.
|
|
||||||
"lsp": {
|
|
||||||
// Specify the LSP name as a key here.
|
|
||||||
// As of 8/10/22, supported LSPs are:
|
|
||||||
// pyright
|
|
||||||
// gopls
|
|
||||||
// rust-analyzer
|
|
||||||
// typescript-language-server
|
|
||||||
// vscode-json-languageserver
|
|
||||||
// "rust-analyzer": {
|
|
||||||
// //These initialization options are merged into Zed's defaults
|
|
||||||
// "initialization_options": {
|
|
||||||
// "checkOnSave": {
|
|
||||||
// "command": "clippy"
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
// Set the terminal's font size. If this option is not included,
|
||||||
|
// the terminal will default to matching the buffer's font size.
|
||||||
|
// "font_size": "15"
|
||||||
|
// Set the terminal's font family. If this option is not included,
|
||||||
|
// the terminal will default to matching the buffer's font family.
|
||||||
|
// "font_family": "Zed Mono"
|
||||||
|
},
|
||||||
|
// Different settings for specific languages.
|
||||||
|
"languages": {
|
||||||
|
"Plain Text": {
|
||||||
|
"soft_wrap": "preferred_line_length"
|
||||||
|
},
|
||||||
|
"Elixir": {
|
||||||
|
"tab_size": 2
|
||||||
|
},
|
||||||
|
"Go": {
|
||||||
|
"tab_size": 4,
|
||||||
|
"hard_tabs": true
|
||||||
|
},
|
||||||
|
"Markdown": {
|
||||||
|
"soft_wrap": "preferred_line_length"
|
||||||
|
},
|
||||||
|
"JavaScript": {
|
||||||
|
"tab_size": 2
|
||||||
|
},
|
||||||
|
"TypeScript": {
|
||||||
|
"tab_size": 2
|
||||||
|
},
|
||||||
|
"TSX": {
|
||||||
|
"tab_size": 2
|
||||||
|
},
|
||||||
|
"YAML": {
|
||||||
|
"tab_size": 2
|
||||||
|
},
|
||||||
|
"JSON": {
|
||||||
|
"tab_size": 2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// LSP Specific settings.
|
||||||
|
"lsp": {
|
||||||
|
// Specify the LSP name as a key here.
|
||||||
|
// As of 8/10/22, supported LSPs are:
|
||||||
|
// pyright
|
||||||
|
// gopls
|
||||||
|
// rust-analyzer
|
||||||
|
// typescript-language-server
|
||||||
|
// vscode-json-languageserver
|
||||||
|
// "rust-analyzer": {
|
||||||
|
// //These initialization options are merged into Zed's defaults
|
||||||
|
// "initialization_options": {
|
||||||
|
// "checkOnSave": {
|
||||||
|
// "command": "clippy"
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,5 +7,5 @@
|
||||||
// custom settings, run the `open default settings` command
|
// custom settings, run the `open default settings` command
|
||||||
// from the command palette or from `Zed` application menu.
|
// from the command palette or from `Zed` application menu.
|
||||||
{
|
{
|
||||||
"buffer_font_size": 15
|
"buffer_font_size": 15
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue