chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,210 @@
|
||||
#:schema ../extra/schemas/color-theme.json
|
||||
|
||||
[color-theme]
|
||||
name = "Lapce Dark"
|
||||
|
||||
[ui]
|
||||
font-family = ""
|
||||
font-size = 13
|
||||
header-height = 35
|
||||
status-height = 25
|
||||
tab-min-width = 100
|
||||
activity-width = 50
|
||||
scroll-width = 10
|
||||
drop-shadow-width = 0
|
||||
|
||||
[color-theme.base]
|
||||
black = "#282C34"
|
||||
blue = "#61AFEF"
|
||||
cyan = "#56B6C2"
|
||||
green = "#98C379"
|
||||
grey = "#3E4451"
|
||||
magenta = "#C678DD"
|
||||
orange = "#D19A66"
|
||||
purple = "#C678DD"
|
||||
red = "#E06C75"
|
||||
white = "#ABB2BF"
|
||||
yellow = "#E5C07B"
|
||||
|
||||
primary-background = "$black"
|
||||
# Background for 'secondary' elements: panels, palette, status bar, completion, hover
|
||||
secondary-background = "#21252B"
|
||||
current-background = "#2C313A"
|
||||
text = "$white"
|
||||
dim-text = "#5C6370"
|
||||
|
||||
[color-theme.syntax]
|
||||
"comment" = "$dim-text"
|
||||
"constant" = "$yellow"
|
||||
"type" = "$yellow"
|
||||
"typeAlias" = "$yellow"
|
||||
"number" = "$yellow"
|
||||
"enum" = "$yellow"
|
||||
"struct" = "$yellow"
|
||||
"structure" = "$yellow"
|
||||
"interface" = "$yellow"
|
||||
"attribute" = "$yellow"
|
||||
"constructor" = "$yellow"
|
||||
"function" = "$blue"
|
||||
"method" = "$blue"
|
||||
"function.method" = "$blue"
|
||||
"keyword" = "$purple"
|
||||
"selfKeyword" = "$purple"
|
||||
"field" = "$red"
|
||||
"property" = "$red"
|
||||
"enumMember" = "$red"
|
||||
"enum-member" = "$red"
|
||||
"string" = "$green"
|
||||
"type.builtin" = "$cyan"
|
||||
"builtinType" = "$cyan"
|
||||
"escape" = "$cyan"
|
||||
"string.escape" = "$cyan"
|
||||
"embedded" = "$cyan"
|
||||
"punctuation.delimiter" = "$yellow"
|
||||
"text.title" = "$orange"
|
||||
"text.uri" = "$cyan"
|
||||
"text.reference" = "$yellow"
|
||||
"variable" = "$red"
|
||||
"variable.other.member" = "$red"
|
||||
"tag" = "$blue"
|
||||
|
||||
"markup.heading" = "$red"
|
||||
"markup.bold" = "$orange"
|
||||
"markup.italic" = "$orange"
|
||||
"markup.list" = "$orange"
|
||||
"markup.link.url" = "$blue"
|
||||
"markup.link.label" = "$purple"
|
||||
"markup.link.text" = "$purple"
|
||||
|
||||
"bracket.color.1" = "$blue"
|
||||
"bracket.color.2" = "$yellow"
|
||||
"bracket.color.3" = "$purple"
|
||||
"bracket.unpaired" = "$red"
|
||||
|
||||
[color-theme.ui]
|
||||
"lapce.error" = "$red"
|
||||
"lapce.warn" = "$yellow"
|
||||
"lapce.dropdown_shadow" = "#000000"
|
||||
"lapce.border" = "#000000"
|
||||
"lapce.scroll_bar" = "#3E4451BB"
|
||||
|
||||
"lapce.button.primary.background" = "#50a14f"
|
||||
"lapce.button.primary.foreground" = "$black"
|
||||
|
||||
# tab
|
||||
"lapce.tab.active.background" = "$primary-background"
|
||||
"lapce.tab.active.foreground" = "$text"
|
||||
"lapce.tab.active.underline" = "#528BFF"
|
||||
|
||||
"lapce.tab.inactive.background" = "$secondary-background"
|
||||
"lapce.tab.inactive.foreground" = "$text"
|
||||
"lapce.tab.inactive.underline" = "#528BFF77"
|
||||
|
||||
"lapce.tab.separator" = ""
|
||||
|
||||
"lapce.icon.active" = "$text"
|
||||
"lapce.icon.inactive" = "$dim-text"
|
||||
|
||||
"lapce.remote.icon" = "$black"
|
||||
"lapce.remote.local" = "#4078F2"
|
||||
"lapce.remote.connected" = "#50A14F"
|
||||
"lapce.remote.connecting" = "#C18401"
|
||||
"lapce.remote.disconnected" = "#E45649"
|
||||
|
||||
"lapce.plugin.name" = "#DDDDDD"
|
||||
"lapce.plugin.description" = "$text"
|
||||
"lapce.plugin.author" = "#B0B0B0"
|
||||
|
||||
"editor.background" = "$primary-background"
|
||||
"editor.foreground" = "$text"
|
||||
"editor.dim" = "$dim-text"
|
||||
"editor.focus" = "#CCCCCC"
|
||||
"editor.caret" = "#528BFF"
|
||||
"editor.selection" = "$grey"
|
||||
"editor.current_line" = "#2C313C"
|
||||
"editor.debug_break_line" = "#528abF37"
|
||||
"editor.link" = "$blue"
|
||||
"editor.visible_whitespace" = "$grey"
|
||||
"editor.indent_guide" = "$grey"
|
||||
"editor.drag_drop_background" = "#79c1fc55"
|
||||
"editor.drag_drop_tab_background" = "#0b0e1455"
|
||||
"editor.sticky_header_background" = "$primary-background"
|
||||
|
||||
"inlay_hint.foreground" = "$text"
|
||||
"inlay_hint.background" = "#528abF37"
|
||||
|
||||
"error_lens.error.foreground" = "$red"
|
||||
"error_lens.error.background" = "#E06C7520"
|
||||
"error_lens.warning.foreground" = "$yellow"
|
||||
"error_lens.warning.background" = "#E5C07B20"
|
||||
"error_lens.other.foreground" = "$dim-text"
|
||||
"error_lens.other.background" = "#5C637020"
|
||||
|
||||
"completion_lens.foreground" = "$dim-text"
|
||||
|
||||
"source_control.added" = "#50A14FCC"
|
||||
"source_control.removed" = "#FF5266CC"
|
||||
"source_control.modified" = "#0184BCCC"
|
||||
|
||||
"tooltip.background" = "$primary-background"
|
||||
"tooltip.foreground" = "$text"
|
||||
|
||||
"palette.background" = "$secondary-background"
|
||||
"palette.foreground" = "$text"
|
||||
"palette.current.background" = "$current-background"
|
||||
"palette.current.foreground" = "$text"
|
||||
|
||||
"completion.background" = "$secondary-background"
|
||||
"completion.current" = "$current-background"
|
||||
|
||||
"hover.background" = "$secondary-background"
|
||||
|
||||
"activity.background" = "$secondary-background"
|
||||
"activity.current" = "$primary-background"
|
||||
|
||||
"debug.breakpoint" = "$red"
|
||||
"debug.breakpoint.hover" = "#E06C7566"
|
||||
|
||||
"panel.background" = "$secondary-background"
|
||||
"panel.foreground" = "$text"
|
||||
"panel.foreground.dim" = "$dim-text"
|
||||
"panel.current.background" = "$current-background"
|
||||
"panel.current.foreground" = "$text"
|
||||
"panel.current.foreground.dim" = "$dim-text"
|
||||
"panel.hovered.background" = "#343A45"
|
||||
"panel.hovered.active.background" = "$dim-text"
|
||||
"panel.hovered.foreground" = "$text"
|
||||
"panel.hovered.foreground.dim" = "$dim-text"
|
||||
|
||||
"status.background" = "$secondary-background"
|
||||
"status.foreground" = "$text"
|
||||
"status.modal.normal.background" = "$blue"
|
||||
"status.modal.normal.foreground" = "$black"
|
||||
"status.modal.insert.background" = "$red"
|
||||
"status.modal.insert.foreground" = "$black"
|
||||
"status.modal.visual.background" = "$yellow"
|
||||
"status.modal.visual.foreground" = "$black"
|
||||
"status.modal.terminal.background" = "$purple"
|
||||
"status.modal.terminal.foreground" = "$black"
|
||||
|
||||
"markdown.blockquote" = "#898989"
|
||||
|
||||
"terminal.cursor" = "$text"
|
||||
"terminal.foreground" = "$text"
|
||||
"terminal.background" = "$primary-background"
|
||||
"terminal.white" = "$white"
|
||||
"terminal.black" = "$black"
|
||||
"terminal.red" = "$red"
|
||||
"terminal.blue" = "$blue"
|
||||
"terminal.green" = "$green"
|
||||
"terminal.yellow" = "$yellow"
|
||||
"terminal.cyan" = "$cyan"
|
||||
"terminal.magenta" = "$magenta"
|
||||
"terminal.bright_white" = "#C8CCD4"
|
||||
"terminal.bright_red" = "$red"
|
||||
"terminal.bright_blue" = "$blue"
|
||||
"terminal.bright_green" = "$green"
|
||||
"terminal.bright_yellow" = "$yellow"
|
||||
"terminal.bright_cyan" = "$cyan"
|
||||
"terminal.bright_magenta" = "$magenta"
|
||||
"terminal.bright_black" = "#545862"
|
||||
@@ -0,0 +1,153 @@
|
||||
#:schema ../extra/schemas/icon-theme.json
|
||||
|
||||
[icon-theme]
|
||||
name = "Lapce Codicons"
|
||||
|
||||
[icon-theme.ui]
|
||||
"logo" = "lapce_logo.svg"
|
||||
"menu" = "menu.svg"
|
||||
"link" = "link.svg"
|
||||
"error" = "error.svg"
|
||||
"add" = "add.svg"
|
||||
"close" = "close.svg"
|
||||
"remote" = "remote.svg"
|
||||
"unsaved" = "circle-filled.svg"
|
||||
"warning" = "warning.svg"
|
||||
"problem" = "problem.svg"
|
||||
"debug" = "debug.svg"
|
||||
"debug_breakpoint" = "circle-filled.svg"
|
||||
"debug_alt" = "debug-alt.svg"
|
||||
"debug_small" = "debug-alt-small.svg"
|
||||
"debug_restart" = "debug-restart.svg"
|
||||
"debug_continue" = "debug-continue.svg"
|
||||
"debug_step_over" = "debug-step-over.svg"
|
||||
"debug_step_into" = "debug-step-into.svg"
|
||||
"debug_step_out" = "debug-step-out.svg"
|
||||
"debug_pause" = "debug-pause.svg"
|
||||
"debug_stop" = "debug-stop.svg"
|
||||
"debug_console" = "debug-console.svg"
|
||||
"debug_disconnect" = "debug-disconnect.svg"
|
||||
"start" = "debug-start.svg"
|
||||
"run_errors" = "run-errors.svg"
|
||||
"settings" = "settings-gear.svg"
|
||||
"terminal" = "terminal.svg"
|
||||
"lightbulb" = "lightbulb.svg"
|
||||
"extensions" = "extensions.svg"
|
||||
"keyboard" = "keyboard.svg"
|
||||
"breadcrumb_separator" = "chevron-right.svg"
|
||||
"symbol_color" = "symbol-color.svg"
|
||||
"type_hierarchy" = "type-hierarchy.svg"
|
||||
|
||||
"window.close" = "chrome-close.svg"
|
||||
"window.restore" = "chrome-restore.svg"
|
||||
"window.maximize" = "chrome-maximize.svg"
|
||||
"window.minimize" = "chrome-minimize.svg"
|
||||
|
||||
"file" = "file.svg"
|
||||
"file_explorer" = "files.svg"
|
||||
"file_picker_up" = "arrow-up.svg"
|
||||
|
||||
"image_loading" = "refresh.svg"
|
||||
"image_error" = "error.svg"
|
||||
|
||||
"scm.icon" = "source-control.svg"
|
||||
"scm.diff.modified" = "diff-modified.svg"
|
||||
"scm.diff.added" = "diff-added.svg"
|
||||
"scm.diff.removed" = "diff-removed.svg"
|
||||
"scm.diff.renamed" = "diff-renamed.svg"
|
||||
"scm.change.add" = "add.svg"
|
||||
"scm.change.remove" = "remove.svg"
|
||||
|
||||
"palette.menu" = "chevron-down.svg"
|
||||
|
||||
"fold" = "fold.svg"
|
||||
"fold.up" = "fold-up.svg"
|
||||
"fold.down" = "fold-down.svg"
|
||||
|
||||
"dropdown.arrow" = "chevron-down.svg"
|
||||
|
||||
"panel.fold-down" = "chevron-down.svg"
|
||||
"panel.fold-up" = "chevron-right.svg"
|
||||
|
||||
"location.forward" = "arrow-right.svg"
|
||||
"location.backward" = "arrow-left.svg"
|
||||
|
||||
"item.opened" = "chevron-down.svg"
|
||||
"item.closed" = "chevron-right.svg"
|
||||
|
||||
"directory.closed" = "folder.svg"
|
||||
"directory.opened" = "folder-opened.svg"
|
||||
|
||||
"panel.restore" = "chevron-down.svg"
|
||||
"panel.maximise" = "chevron-right.svg"
|
||||
|
||||
"split.horizontal" = "split-horizontal.svg"
|
||||
|
||||
"tab.previous" = "chevron-left.svg"
|
||||
"tab.next" = "chevron-right.svg"
|
||||
|
||||
"sidebar.left.on" = "layout-sidebar-left.svg"
|
||||
"sidebar.left.off" = "layout-sidebar-left-off.svg"
|
||||
"sidebar.right.on" = "layout-sidebar-right.svg"
|
||||
"sidebar.right.off" = "layout-sidebar-right-off.svg"
|
||||
|
||||
"layout.panel.on" = "layout-panel.svg"
|
||||
"layout.panel.off" = "layout-panel-off.svg"
|
||||
|
||||
"search.icon" = "search.svg"
|
||||
"search.clear" = "close.svg"
|
||||
"search.forward" = "arrow-down.svg"
|
||||
"search.backward" = "arrow-up.svg"
|
||||
"search.case_sensitive" = "case-sensitive.svg"
|
||||
"search.whole_word" = "whole-word.svg"
|
||||
"search.regex" = "regex.svg"
|
||||
"search.replace" = "replace.svg"
|
||||
"search.replace_all" = "replace-all.svg"
|
||||
|
||||
"document_symbol" = "symbol-class.svg"
|
||||
"references" = "references.svg"
|
||||
"implementation" = "combine.svg"
|
||||
"symbol_kind.array" = "symbol-array.svg"
|
||||
"symbol_kind.boolean" = "symbol-boolean.svg"
|
||||
"symbol_kind.class" = "symbol-class.svg"
|
||||
"symbol_kind.constant" = "symbol-constant.svg"
|
||||
"symbol_kind.enum_member" = "symbol-enum-member.svg"
|
||||
"symbol_kind.enum" = "symbol-enum.svg"
|
||||
"symbol_kind.event" = "symbol-event.svg"
|
||||
"symbol_kind.field" = "symbol-field.svg"
|
||||
"symbol_kind.file" = "symbol-file.svg"
|
||||
"symbol_kind.function" = "symbol-method.svg"
|
||||
"symbol_kind.interface" = "symbol-interface.svg"
|
||||
"symbol_kind.key" = "symbol-key.svg"
|
||||
"symbol_kind.method" = "symbol-method.svg"
|
||||
"symbol_kind.namespace" = "symbol-namespace.svg"
|
||||
"symbol_kind.number" = "symbol-numeric.svg"
|
||||
"symbol_kind.object" = "symbol-namespace.svg"
|
||||
"symbol_kind.operator" = "symbol-operator.svg"
|
||||
"symbol_kind.property" = "symbol-property.svg"
|
||||
"symbol_kind.string" = "symbol-string.svg"
|
||||
"symbol_kind.struct" = "symbol-structure.svg"
|
||||
"symbol_kind.type_parameter" = "symbol-parameter.svg"
|
||||
"symbol_kind.variable" = "symbol-variable.svg"
|
||||
|
||||
"completion_item_kind.class" = "symbol-class.svg"
|
||||
"completion_item_kind.constant" = "symbol-constant.svg"
|
||||
"completion_item_kind.enum_member" = "symbol-enum-member.svg"
|
||||
"completion_item_kind.enum" = "symbol-enum.svg"
|
||||
"completion_item_kind.field" = "symbol-field.svg"
|
||||
"completion_item_kind.function" = "symbol-method.svg"
|
||||
"completion_item_kind.interface" = "symbol-interface.svg"
|
||||
"completion_item_kind.keyword" = "symbol-keyword.svg"
|
||||
"completion_item_kind.method" = "symbol-method.svg"
|
||||
"completion_item_kind.module" = "symbol-namespace.svg"
|
||||
"completion_item_kind.property" = "symbol-property.svg"
|
||||
"completion_item_kind.snippet" = "symbol-snippet.svg"
|
||||
"completion_item_kind.string" = "symbol-string.svg"
|
||||
"completion_item_kind.struct" = "symbol-structure.svg"
|
||||
"completion_item_kind.variable" = "symbol-variable.svg"
|
||||
|
||||
[icon-theme.foldername]
|
||||
|
||||
[icon-theme.filename]
|
||||
|
||||
[icon-theme.extension]
|
||||
@@ -0,0 +1,737 @@
|
||||
# --------------------------------- General --------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "F1"
|
||||
command = "palette.command"
|
||||
|
||||
# [[keymaps]]
|
||||
# key = "ctrl+q"
|
||||
# command = "quit"
|
||||
|
||||
# --------------------------------- Basic editing ---------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+up"
|
||||
command = "move_line_up"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+down"
|
||||
command = "move_line_down"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "Delete"
|
||||
command = "delete_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "backspace"
|
||||
command = "delete_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+backspace"
|
||||
command = "delete_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "Home"
|
||||
command = "line_start_non_blank"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "End"
|
||||
command = "line_end"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "PageUp"
|
||||
command = "page_up"
|
||||
|
||||
[[keymaps]]
|
||||
key = "PageDown"
|
||||
command = "page_down"
|
||||
|
||||
[[keymaps]]
|
||||
key = "Ctrl+PageUp"
|
||||
command = "scroll_up"
|
||||
|
||||
[[keymaps]]
|
||||
key = "Ctrl+PageDown"
|
||||
command = "scroll_down"
|
||||
|
||||
# ------------------------------------ Multi cursor -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+shift+i"
|
||||
command = "insert_cursor_end_of_line"
|
||||
mode = "i"
|
||||
|
||||
# ----------------------------------- Editor Management -------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+tab"
|
||||
command = "next_editor_tab"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+tab"
|
||||
command = "previous_editor_tab"
|
||||
|
||||
# --------------------------------- Rich Language Editing ----------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "F2"
|
||||
command = "rename_symbol"
|
||||
|
||||
[[keymaps]]
|
||||
key = "F12"
|
||||
command = "goto_definition"
|
||||
|
||||
[[keymaps]]
|
||||
key = "g f"
|
||||
command = "show_code_actions"
|
||||
mode = "n"
|
||||
|
||||
# ------------------------------------ Navigation -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "F8"
|
||||
command = "next_error"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+F8"
|
||||
command = "previous_error"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+-"
|
||||
command = "jump_location_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+-"
|
||||
command = "jump_location_forward"
|
||||
mode = "i"
|
||||
|
||||
# --------------------------------- Integrated Terminal ------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "Ctrl+`"
|
||||
command = "toggle_terminal_focus"
|
||||
|
||||
# ------------------------------------ ------------ -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "jump_to_next_snippet_placeholder"
|
||||
when = "in_snippet"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+tab"
|
||||
command = "jump_to_prev_snippet_placeholder"
|
||||
when = "in_snippet"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "esc"
|
||||
command = "clear_search"
|
||||
when = "search_active || search_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+up"
|
||||
command = "select_next_syntax_item"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+down"
|
||||
command = "select_previous_syntax_item"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+m"
|
||||
command = "list.select"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "list.select"
|
||||
when = "completion_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "enter"
|
||||
command = "list.select"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+p"
|
||||
command = "list.previous"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "up"
|
||||
command = "list.previous"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "PageUp"
|
||||
command = "list.previous_page"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+n"
|
||||
command = "list.next"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "down"
|
||||
command = "list.next"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "PageDown"
|
||||
command = "list.next_page"
|
||||
when = "list_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "o"
|
||||
command = "list.expand"
|
||||
when = "list_focus"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "/"
|
||||
command = "palette.line"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "esc"
|
||||
command = "modal.close"
|
||||
when = "modal_focus || completion_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "inline_completion.select"
|
||||
when = "inline_completion_visible && !search_focus && !modal_focus && !list_focus && !search_active"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "esc"
|
||||
command = "inline_completion.cancel"
|
||||
when = "inline_completion_visible && !search_focus && !modal_focus && !list_focus && !search_active"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+["
|
||||
command = "inline_completion.previous"
|
||||
when = "inline_completion_visible && !search_focus && !modal_focus && !list_focus && !search_active"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+]"
|
||||
command = "inline_completion.next"
|
||||
when = "inline_completion_visible && !search_focus && !modal_focus && !list_focus && !search_active"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+\\"
|
||||
command = "inline_completion.invoke"
|
||||
when = "!inline_completion_visible && !search_focus && !modal_focus && !list_focus && !search_active"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "right"
|
||||
command = "right"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "left"
|
||||
command = "left"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "up"
|
||||
command = "up"
|
||||
when = "!list_focus"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "down"
|
||||
command = "down"
|
||||
when = "!list_focus"
|
||||
mode = "inv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+h"
|
||||
command = "delete_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "enter"
|
||||
command = "insert_new_line"
|
||||
when = "!list_focus && !input_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "focus_replace_editor"
|
||||
when = "search_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "focus_find_editor"
|
||||
when = "replace_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+enter"
|
||||
command = "search_backward"
|
||||
when = "search_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "enter"
|
||||
command = "search_forward"
|
||||
when = "search_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "enter"
|
||||
command = "global_search_refresh"
|
||||
when = "global_search_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "enter"
|
||||
command = "confirm_rename"
|
||||
when = "rename_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "tab"
|
||||
command = "insert_tab"
|
||||
when = "!in_snippet && !completion_focus && !inline_completion_visible && !search_focus && !replace_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+m"
|
||||
command = "insert_new_line"
|
||||
when = "!list_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+shift+up"
|
||||
command = "duplicate_line_up"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+shift+down"
|
||||
command = "duplicate_line_down"
|
||||
mode = "i"
|
||||
|
||||
# ------------------------------------ Modal -----------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "esc"
|
||||
command = "normal_mode"
|
||||
mode = "niv"
|
||||
when = "!search_focus && !modal_focus && !search_active && !inline_completion_visible"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+c"
|
||||
command = "normal_mode"
|
||||
mode = "niv"
|
||||
when = "!search_focus && !modal_focus && !search_active"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+["
|
||||
command = "normal_mode"
|
||||
mode = "niv"
|
||||
when = "!search_focus && !search_active"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+;"
|
||||
command = "palette.command"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+g"
|
||||
command = "go_to_line_default_last"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "g g"
|
||||
command = "go_to_line_default_first"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "h"
|
||||
command = "left"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "j"
|
||||
command = "down"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "k"
|
||||
command = "up"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "l"
|
||||
command = "right"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "a"
|
||||
command = "append"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+a"
|
||||
command = "append_end_of_line"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "i"
|
||||
command = "insert_mode"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "u"
|
||||
command = "undo"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+r"
|
||||
command = "redo"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+i"
|
||||
command = "jump_location_forward_local"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+o"
|
||||
command = "jump_location_backward_local"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+n"
|
||||
command = "goto_definition"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "g d"
|
||||
command = "goto_definition"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "g h"
|
||||
command = "show_hover"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "p"
|
||||
command = "paste"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+p"
|
||||
command = "paste_before"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+j"
|
||||
command = "join_lines"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "y"
|
||||
command = "yank"
|
||||
mode = "v"
|
||||
|
||||
[[keymaps]]
|
||||
key = "x"
|
||||
command = "delete_forward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+p"
|
||||
command = "get_references"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "s"
|
||||
command = "delete_forward_and_insert"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "c"
|
||||
command = "delete_forward_and_insert"
|
||||
mode = "v"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+s"
|
||||
command = "delete_line_and_insert"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "c c"
|
||||
command = "delete_line_and_insert"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "c w"
|
||||
command = "delete_word_and_insert"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "c e"
|
||||
command = "delete_word_and_insert"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+i"
|
||||
command = "insert_first_non_blank"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "o"
|
||||
command = "new_line_below"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "0"
|
||||
command = "line_start"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+6"
|
||||
command = "line_start_non_blank"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+4"
|
||||
command = "line_end"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "w"
|
||||
command = "word_forward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "e"
|
||||
command = "word_end_forward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "b"
|
||||
command = "word_backward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+o"
|
||||
command = "new_line_above"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+e"
|
||||
command = "scroll_down"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+y"
|
||||
command = "scroll_up"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+u"
|
||||
command = "page_up"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+d"
|
||||
command = "page_down"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "z z"
|
||||
command = "center_of_window"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "z t"
|
||||
command = "top_of_window"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "z b"
|
||||
command = "bottom_of_window"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "d"
|
||||
command = "delete_forward"
|
||||
mode = "v"
|
||||
|
||||
[[keymaps]]
|
||||
key = "m"
|
||||
command = "create_mark"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "'"
|
||||
command = "go_to_mark"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "f"
|
||||
command = "inline_find_right"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+f"
|
||||
command = "inline_find_left"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = ";"
|
||||
command = "repeat_last_inline_find"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "d"
|
||||
command = "motion_mode_delete"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+."
|
||||
command = "motion_mode_indent"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+,"
|
||||
command = "motion_mode_outdent"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "y"
|
||||
command = "motion_mode_yank"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+8"
|
||||
command = "search_whole_word_forward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "n"
|
||||
command = "search_forward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+n"
|
||||
command = "search_backward"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+5"
|
||||
command = "match_pairs"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "] shift+0"
|
||||
command = "next_unmatched_right_bracket"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "[ shift+9"
|
||||
command = "previous_unmatched_left_bracket"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "] shift+]"
|
||||
command = "next_unmatched_right_curly_bracket"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "[ shift+["
|
||||
command = "previous_unmatched_left_curly_bracket"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "v"
|
||||
command = "toggle_visual_mode"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+v"
|
||||
command = "toggle_linewise_visual_mode"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+v"
|
||||
command = "toggle_blockwise_visual_mode"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w l"
|
||||
command = "split_right"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w h"
|
||||
command = "split_left"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w j"
|
||||
command = "split_down"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w k"
|
||||
command = "split_up"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w s"
|
||||
command = "split_horizontal"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w v"
|
||||
command = "split_vertical"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w c"
|
||||
command = "split_close"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w x"
|
||||
command = "split_exchange"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "space"
|
||||
command = "toggle_code_glance"
|
||||
mode = "nv"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+."
|
||||
command = "indent_line"
|
||||
mode = "v"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+,"
|
||||
command = "outdent_line"
|
||||
mode = "v"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+c"
|
||||
command = "delete_to_end_and_insert"
|
||||
mode = "n"
|
||||
@@ -0,0 +1,305 @@
|
||||
# --------------------------------- Window ---------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
command = "window_close"
|
||||
key = "Meta+Shift+W"
|
||||
|
||||
# --------------------------------- General --------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+p"
|
||||
command = "palette"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+p"
|
||||
command = "palette.command"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+e"
|
||||
command = "toggle_code_glance"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+,"
|
||||
command = "open_settings"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+k meta+s"
|
||||
command = "open_keyboard_shortcuts"
|
||||
|
||||
# [[keymaps]]
|
||||
# key = "meta+q"
|
||||
# command = "quit"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+="
|
||||
command = "zoom_in"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+-"
|
||||
command = "zoom_out"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+enter"
|
||||
command = "source_control_commit"
|
||||
when = "source_control_focus"
|
||||
|
||||
# --------------------------------- Basic editing ---------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+z"
|
||||
command = "undo"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+z"
|
||||
command = "redo"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+y"
|
||||
command = "redo"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+x"
|
||||
command = "clipboard_cut"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+c"
|
||||
command = "clipboard_copy"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+v"
|
||||
command = "clipboard_paste"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+f"
|
||||
command = "search"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+right"
|
||||
command = "word_end_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+left"
|
||||
command = "word_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+left"
|
||||
command = "line_start_non_blank"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+right"
|
||||
command = "line_end"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+a"
|
||||
command = "line_start_non_blank"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+e"
|
||||
command = "line_end"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+k"
|
||||
command = "delete_line"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+backspace"
|
||||
command = "delete_word_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+backspace"
|
||||
command = "delete_to_beginning_of_line"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+k"
|
||||
command = "delete_to_end_of_line"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+delete"
|
||||
command = "delete_word_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+\\"
|
||||
command = "match_pairs"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+/"
|
||||
command = "toggle_line_comment"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+]"
|
||||
command = "indent_line"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+["
|
||||
command = "outdent_line"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+a"
|
||||
command = "select_all"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+enter"
|
||||
command = "new_line_below"
|
||||
when = "!source_control_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+enter"
|
||||
command = "new_line_above"
|
||||
mode = "i"
|
||||
|
||||
# ------------------------------------ Multi cursor -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+meta+up"
|
||||
command = "insert_cursor_above"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+meta+down"
|
||||
command = "insert_cursor_below"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+l"
|
||||
command = "select_current_line"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+l"
|
||||
command = "select_all_current"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+u"
|
||||
command = "select_undo"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+d"
|
||||
command = "select_next_current"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+k meta+d"
|
||||
command = "select_skip_current"
|
||||
mode = "i"
|
||||
|
||||
# ------------------------------------ File Management --------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+s"
|
||||
command = "save"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+o"
|
||||
command = "open_file"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+n"
|
||||
command = "new_file"
|
||||
|
||||
# ----------------------------------- Editor Management -------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+w"
|
||||
command = "split_close"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+k f"
|
||||
command = "close_folder"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+\\"
|
||||
command = "split_vertical"
|
||||
|
||||
# --------------------------------- Rich Language Editing ----------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+space"
|
||||
command = "get_completion"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+i"
|
||||
command = "get_completion"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+space"
|
||||
command = "get_signature"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+."
|
||||
command = "show_code_actions"
|
||||
|
||||
# --------------------------------- Display -------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+e"
|
||||
command = "toggle_file_explorer_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+f"
|
||||
command = "toggle_search_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+x"
|
||||
command = "toggle_plugin_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+m"
|
||||
command = "toggle_problem_focus"
|
||||
|
||||
# ------------------------------------ Navigation -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+up"
|
||||
command = "document_start"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+down"
|
||||
command = "document_end"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+f"
|
||||
command = "right"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+p"
|
||||
command = "up"
|
||||
when = "!list_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+n"
|
||||
command = "down"
|
||||
when = "!list_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+shift+o"
|
||||
command = "palette.symbol"
|
||||
|
||||
[[keymaps]]
|
||||
key = "meta+t"
|
||||
command = "palette.workspace_symbol"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+g"
|
||||
command = "palette.line"
|
||||
@@ -0,0 +1,310 @@
|
||||
# --------------------------------- Window ---------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
command = "close_window"
|
||||
key = "Alt+F4"
|
||||
|
||||
# --------------------------------- General --------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+p"
|
||||
command = "palette"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+p"
|
||||
command = "palette.command"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+e"
|
||||
command = "toggle_code_glance"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+,"
|
||||
command = "open_settings"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+k ctrl+s"
|
||||
command = "open_keyboard_shortcuts"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+="
|
||||
command = "zoom_in"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+-"
|
||||
command = "zoom_out"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+enter"
|
||||
command = "source_control_commit"
|
||||
when = "source_control_focus"
|
||||
|
||||
# --------------------------------- Terminal copy/paste ---------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+c"
|
||||
command = "clipboard_copy"
|
||||
mode = "t"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+v"
|
||||
command = "clipboard_paste"
|
||||
mode = "t"
|
||||
|
||||
# --------------------------------- Basic editing ---------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+z"
|
||||
command = "undo"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+z"
|
||||
command = "redo"
|
||||
mode = "i"
|
||||
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+y"
|
||||
command = "redo"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+x"
|
||||
command = "clipboard_cut"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+Delete"
|
||||
command = "clipboard_cut"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+c"
|
||||
command = "clipboard_copy"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+insert"
|
||||
command = "clipboard_copy"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+v"
|
||||
command = "clipboard_paste"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "shift+insert"
|
||||
command = "clipboard_paste"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+f"
|
||||
command = "search"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+right"
|
||||
command = "word_end_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+left"
|
||||
command = "word_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+backspace"
|
||||
command = "delete_word_backward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+delete"
|
||||
command = "delete_word_forward"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+\\"
|
||||
command = "match_pairs"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+/"
|
||||
command = "toggle_line_comment"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+]"
|
||||
command = "indent_line"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+["
|
||||
command = "outdent_line"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+a"
|
||||
command = "select_all"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+enter"
|
||||
command = "new_line_below"
|
||||
when = "!source_control_focus"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+enter"
|
||||
command = "new_line_above"
|
||||
mode = "i"
|
||||
|
||||
# ------------------------------------ Multi cursor -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+ctrl+up"
|
||||
command = "insert_cursor_above"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "alt+ctrl+down"
|
||||
command = "insert_cursor_below"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+l"
|
||||
command = "select_current_line"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+l"
|
||||
command = "select_all_current"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+u"
|
||||
command = "select_undo"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+d"
|
||||
command = "select_next_current"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+k ctrl+d"
|
||||
command = "select_skip_current"
|
||||
mode = "i"
|
||||
|
||||
# ------------------------------------ File Management --------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+s"
|
||||
command = "save"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+o"
|
||||
command = "open_file"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+n"
|
||||
command = "new_file"
|
||||
|
||||
# ----------------------------------- Editor Management -------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+w"
|
||||
command = "split_close"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+k f"
|
||||
command = "close_folder"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+F4"
|
||||
command = "split_close"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+\\"
|
||||
command = "split_vertical"
|
||||
|
||||
# --------------------------------- Rich Language Editing ----------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+space"
|
||||
command = "get_completion"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+i"
|
||||
command = "get_completion"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+space"
|
||||
command = "get_signature"
|
||||
mode = "i"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+."
|
||||
command = "show_code_actions"
|
||||
|
||||
# --------------------------------- Display -------------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+e"
|
||||
command = "toggle_file_explorer_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+f"
|
||||
command = "toggle_search_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+x"
|
||||
command = "toggle_plugin_focus"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+m"
|
||||
command = "toggle_problem_focus"
|
||||
|
||||
# ------------------------------------ Navigation -------------------------------------
|
||||
|
||||
[[keymaps]]
|
||||
key = "Ctrl+Home"
|
||||
command = "document_start"
|
||||
|
||||
[[keymaps]]
|
||||
key = "Ctrl+End"
|
||||
command = "document_end"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+b"
|
||||
command = "left"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+f"
|
||||
command = "right"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+p"
|
||||
command = "up"
|
||||
when = "!list_focus"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+n"
|
||||
command = "down"
|
||||
when = "!list_focus"
|
||||
mode = "n"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+shift+o"
|
||||
command = "palette.symbol"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+t"
|
||||
command = "palette.workspace_symbol"
|
||||
|
||||
[[keymaps]]
|
||||
key = "ctrl+g"
|
||||
command = "palette.line"
|
||||
@@ -0,0 +1,216 @@
|
||||
#:schema ../extra/schemas/color-theme.json
|
||||
|
||||
[color-theme]
|
||||
name = "Lapce Light"
|
||||
|
||||
[ui]
|
||||
font-family = ""
|
||||
font-size = 13
|
||||
header-height = 35
|
||||
status-height = 25
|
||||
tab-min-width = 100
|
||||
activity-width = 50
|
||||
scroll-width = 10
|
||||
drop-shadow-width = 0
|
||||
|
||||
[color-theme.base]
|
||||
black = "#383A42"
|
||||
blue = "#4078F2"
|
||||
cyan = "#0184BC"
|
||||
green = "#50A14F"
|
||||
grey = "#E5E5E6"
|
||||
magenta = "#A626A4"
|
||||
orange = "#D19A66"
|
||||
purple = "#A626A4"
|
||||
red = "#E45649"
|
||||
white = "#FAFAFA"
|
||||
yellow = "#C18401"
|
||||
|
||||
primary-background = "$white"
|
||||
# Background for 'secondary' elements: panels, palette, status bar, completion, hover
|
||||
secondary-background = "#EAEAEB"
|
||||
current-background = "#DBDBDC"
|
||||
text = "$black"
|
||||
dim-text = "#A0A1A7"
|
||||
|
||||
[color-theme.syntax]
|
||||
"comment" = "$dim-text"
|
||||
"constant" = "$yellow"
|
||||
"type" = "$yellow"
|
||||
"typeAlias" = "$yellow"
|
||||
"number" = "$yellow"
|
||||
"enum" = "$yellow"
|
||||
"struct" = "$yellow"
|
||||
"structure" = "$yellow"
|
||||
"interface" = "$yellow"
|
||||
"attribute" = "$yellow"
|
||||
"constructor" = "$yellow"
|
||||
|
||||
"function" = "$blue"
|
||||
"method" = "$blue"
|
||||
"function.method" = "$blue"
|
||||
|
||||
"keyword" = "$purple"
|
||||
"selfKeyword" = "$purple"
|
||||
|
||||
"field" = "$red"
|
||||
"property" = "$red"
|
||||
"enumMember" = "$red"
|
||||
"enum-member" = "$red"
|
||||
|
||||
"string" = "$green"
|
||||
"string.escape" = "$cyan"
|
||||
|
||||
"type.builtin" = "$cyan"
|
||||
"builtinType" = "$cyan"
|
||||
"escape" = "$cyan"
|
||||
"embedded" = "$cyan"
|
||||
|
||||
"punctuation.delimiter" = "$yellow"
|
||||
"text.title" = "$orange"
|
||||
"text.uri" = "$cyan"
|
||||
"text.reference" = "$yellow"
|
||||
"variable" = "$red"
|
||||
"variable.other.member" = "$red"
|
||||
"tag" = "$blue"
|
||||
|
||||
"markup.heading" = "$red"
|
||||
"markup.bold" = "$orange"
|
||||
"markup.italic" = "$orange"
|
||||
"markup.list" = "$orange"
|
||||
"markup.link.url" = "$blue"
|
||||
"markup.link.label" = "$purple"
|
||||
"markup.link.text" = "$purple"
|
||||
|
||||
"bracket.color.1" = "$blue"
|
||||
"bracket.color.2" = "$yellow"
|
||||
"bracket.color.3" = "$purple"
|
||||
"bracket.unpaired" = "$red"
|
||||
|
||||
[color-theme.ui]
|
||||
"lapce.error" = "#E51400"
|
||||
"lapce.warn" = "#E9A700"
|
||||
"lapce.dropdown_shadow" = "#B4B4B4"
|
||||
"lapce.border" = "#B4B4B4"
|
||||
"lapce.scroll_bar" = "#B4B4B4BB"
|
||||
|
||||
"lapce.button.primary.background" = "#50a14f"
|
||||
"lapce.button.primary.foreground" = "$white"
|
||||
|
||||
# tab
|
||||
"lapce.tab.active.background" = "$primary-background"
|
||||
"lapce.tab.active.foreground" = "$text"
|
||||
"lapce.tab.active.underline" = "#528BFF"
|
||||
|
||||
"lapce.tab.inactive.background" = "#EAEAEB"
|
||||
"lapce.tab.inactive.foreground" = "$text"
|
||||
"lapce.tab.inactive.underline" = "#528BFF77"
|
||||
|
||||
"lapce.tab.separator" = "#B4B4B4"
|
||||
|
||||
"lapce.icon.active" = "$text"
|
||||
"lapce.icon.inactive" = "$dim-text"
|
||||
|
||||
"lapce.remote.icon" = "$white"
|
||||
"lapce.remote.local" = "#4078F2"
|
||||
"lapce.remote.connected" = "#50A14F"
|
||||
"lapce.remote.connecting" = "#C18401"
|
||||
"lapce.remote.disconnected" = "#E45649"
|
||||
|
||||
"lapce.plugin.name" = "#444444"
|
||||
"lapce.plugin.description" = "$text"
|
||||
"lapce.plugin.author" = "#707070"
|
||||
|
||||
"terminal.cursor" = "$text"
|
||||
"terminal.foreground" = "$text"
|
||||
"terminal.background" = "$primary-background"
|
||||
"terminal.white" = "$white"
|
||||
"terminal.black" = "$black"
|
||||
"terminal.red" = "$red"
|
||||
"terminal.blue" = "$blue"
|
||||
"terminal.green" = "$green"
|
||||
"terminal.yellow" = "$yellow"
|
||||
"terminal.cyan" = "$cyan"
|
||||
"terminal.magenta" = "$magenta"
|
||||
"terminal.bright_white" = "#090A0B"
|
||||
"terminal.bright_red" = "$red"
|
||||
"terminal.bright_blue" = "$blue"
|
||||
"terminal.bright_green" = "$green"
|
||||
"terminal.bright_yellow" = "$yellow"
|
||||
"terminal.bright_cyan" = "$cyan"
|
||||
"terminal.bright_magenta" = "$magenta"
|
||||
"terminal.bright_black" = "#A0A1A7"
|
||||
|
||||
"editor.background" = "$primary-background"
|
||||
"editor.foreground" = "$text"
|
||||
"editor.dim" = "$dim-text"
|
||||
"editor.focus" = "#000000"
|
||||
"editor.caret" = "#526FFF"
|
||||
"editor.selection" = "$grey"
|
||||
"editor.current_line" = "#F2F2F2"
|
||||
"editor.debug_break_line" = "#528bFF55"
|
||||
"editor.link" = "$blue"
|
||||
"editor.visible_whitespace" = "$grey"
|
||||
"editor.indent_guide" = "$grey"
|
||||
"editor.drag_drop_background" = "#79c1fc33"
|
||||
"editor.drag_drop_tab_background" = "#0b0e1433"
|
||||
"editor.sticky_header_background" = "$primary-background"
|
||||
|
||||
"inlay_hint.foreground" = "$text"
|
||||
"inlay_hint.background" = "#528bFF55"
|
||||
|
||||
"error_lens.error.foreground" = "$red"
|
||||
"error_lens.error.background" = "#E4564920"
|
||||
"error_lens.warning.foreground" = "$yellow"
|
||||
"error_lens.warning.background" = "#C1840120"
|
||||
"error_lens.other.foreground" = "$dim-text"
|
||||
"error_lens.other.background" = "#A0A1A720"
|
||||
|
||||
"completion_lens.foreground" = "$dim-text"
|
||||
|
||||
"source_control.added" = "#50A14FCC"
|
||||
"source_control.removed" = "#FF5266CC"
|
||||
"source_control.modified" = "#0184BCCC"
|
||||
|
||||
"tooltip.background" = "$primary-background"
|
||||
"tooltip.foreground" = "$text"
|
||||
|
||||
"palette.background" = "$secondary-background"
|
||||
"palette.foreground" = "$text"
|
||||
"palette.current.background" = "$current-background"
|
||||
"palette.current.foreground" = "$text"
|
||||
|
||||
"completion.background" = "$secondary-background"
|
||||
"completion.current" = "$current-background"
|
||||
|
||||
"hover.background" = "$secondary-background"
|
||||
|
||||
"activity.background" = "$secondary-background"
|
||||
"activity.current" = "$primary-background"
|
||||
|
||||
"debug.breakpoint" = "$red"
|
||||
"debug.breakpoint.hover" = "#E4564966"
|
||||
|
||||
"panel.background" = "$secondary-background"
|
||||
"panel.foreground" = "$text"
|
||||
"panel.foreground.dim" = "$dim-text"
|
||||
"panel.current.background" = "$current-background"
|
||||
"panel.current.foreground" = "$text"
|
||||
"panel.current.foreground.dim" = "$dim-text"
|
||||
"panel.hovered.background" = "#CBCBCB"
|
||||
"panel.hovered.active.background" = "$dim-text"
|
||||
"panel.hovered.foreground" = "$text"
|
||||
"panel.hovered.foreground.dim" = "$dim-text"
|
||||
|
||||
"status.background" = "$secondary-background"
|
||||
"status.foreground" = "$text"
|
||||
"status.modal.normal.background" = "$blue"
|
||||
"status.modal.normal.foreground" = "$white"
|
||||
"status.modal.insert.background" = "$red"
|
||||
"status.modal.insert.foreground" = "$white"
|
||||
"status.modal.visual.background" = "$yellow"
|
||||
"status.modal.visual.foreground" = "$white"
|
||||
"status.modal.terminal.background" = "$purple"
|
||||
"status.modal.terminal.foreground" = "$white"
|
||||
|
||||
"markdown.blockquote" = "#686868"
|
||||
@@ -0,0 +1,30 @@
|
||||
|
||||
# The run config is used for both run mode and debug mode
|
||||
|
||||
[[configs]]
|
||||
# the name of this task
|
||||
name = "task"
|
||||
|
||||
# the type of the debugger. If not set, it can't be debugged but can still be run
|
||||
# type = "lldb"
|
||||
|
||||
# the program to run, e.g. "${workspace}\\target\\debug\\check.exe"
|
||||
program = ""
|
||||
|
||||
# the program arguments, e.g. args = ["arg1", "arg2"], optional
|
||||
# args = []
|
||||
|
||||
# current working directory, optional
|
||||
# cwd = "${workspace}"
|
||||
|
||||
# environment variables, optional
|
||||
# [configs.env]
|
||||
# VAR1 = "VAL1"
|
||||
# VAR2 = "VAL2"
|
||||
|
||||
# task to run before the run/debug session is started, optional
|
||||
# [configs.prelaunch]
|
||||
# program = "cargo"
|
||||
# args = [
|
||||
# "build",
|
||||
# ]
|
||||
@@ -0,0 +1,105 @@
|
||||
#:schema ../extra/schemas/settings.json
|
||||
|
||||
[core]
|
||||
modal = false
|
||||
color-theme = "Lapce Dark"
|
||||
icon-theme = "Lapce Codicons"
|
||||
custom-titlebar = true
|
||||
file-explorer-double-click = false
|
||||
auto-reload-plugin = false
|
||||
|
||||
[editor]
|
||||
font-family = "monospace"
|
||||
font-size = 13
|
||||
code-glance-font-size = 2
|
||||
line-height = 1.5
|
||||
smart-tab = true
|
||||
tab-width = 4
|
||||
show-tab = true
|
||||
show-bread-crumbs = true
|
||||
scroll-beyond-last-line = true
|
||||
cursor-surrounding-lines = 1
|
||||
wrap-style = "editor-width"
|
||||
wrap-column = 80
|
||||
wrap-width = 600 # px
|
||||
sticky-header = true
|
||||
completion-width = 600
|
||||
completion-show-documentation = true
|
||||
completion-item-show-detail = false
|
||||
show-signature = true
|
||||
signature-label-code-block = true
|
||||
auto-closing-matching-pairs = true
|
||||
auto-surround = true
|
||||
hover-delay = 300 # ms
|
||||
modal-mode-relative-line-numbers = true
|
||||
format-on-save = false
|
||||
highlight-matching-brackets = true
|
||||
highlight-selection-occurrences = true
|
||||
highlight-scope-lines = false
|
||||
autosave-interval = 0
|
||||
format-on-autosave = true
|
||||
normalize-line-endings = true
|
||||
enable-inlay-hints = true
|
||||
inlay-hint-font-family = ""
|
||||
inlay-hint-font-size = 0
|
||||
enable-error-lens = true
|
||||
only-render-error-styling = true
|
||||
error-lens-end-of-line = true
|
||||
error-lens-font-family = ""
|
||||
error-lens-font-size = 0
|
||||
error-lens-multiline = false
|
||||
enable-completion-lens = false
|
||||
enable-inline-completion = true
|
||||
completion-lens-font-family = ""
|
||||
completion-lens-font-size = 0
|
||||
blink-interval = 500 # ms
|
||||
multicursor-case-sensitive = true
|
||||
multicursor-whole-words = true
|
||||
render-whitespace = "none"
|
||||
show-indent-guide = true
|
||||
atomic-soft-tabs = false
|
||||
double-click = "single"
|
||||
move-focus-while-search = true
|
||||
diff-context-lines = 3
|
||||
scroll-speed-modifier = 1
|
||||
bracket-pair-colorization = false
|
||||
bracket-colorization-limit = 30000
|
||||
files-exclude = "**/{.git,.svn,.hg,CVS,.DS_Store,Thumbs.db}" # Glob patterns
|
||||
|
||||
[terminal]
|
||||
font-family = ""
|
||||
font-size = 0
|
||||
line-height = 0
|
||||
|
||||
[terminal.default-profile]
|
||||
macos = "default"
|
||||
linux = "default"
|
||||
windows = "default"
|
||||
|
||||
[terminal.profiles]
|
||||
default = {}
|
||||
|
||||
# [terminal.profiles.example]
|
||||
# command = "cargo"
|
||||
# arguments = ["run"]
|
||||
# environment = { "KEY" = "VALUE" }
|
||||
# workdir = "/home/user"
|
||||
|
||||
[ui]
|
||||
scale = +1.0
|
||||
font-family = ""
|
||||
font-size = 13
|
||||
icon-size = 0
|
||||
header-height = 36
|
||||
status-height = 25
|
||||
tab-min-width = 100
|
||||
tab-separator-height = "Content"
|
||||
scroll-width = 10
|
||||
drop-shadow-width = 0
|
||||
palette-width = 500
|
||||
hover-font-family = ""
|
||||
hover-font-size = 0
|
||||
trim-search-results-whitespace = true
|
||||
list-line-height = 25
|
||||
tab-close-button = "Right"
|
||||
open-editors-visible = true
|
||||
Reference in New Issue
Block a user