Compare commits
2 Commits
74bc42e5f0
...
38cc5d0f35
Author | SHA1 | Date |
---|---|---|
Julius Riegel | 38cc5d0f35 | 3 months ago |
Julius Riegel | 1ef80a61bb | 3 months ago |
@ -1,59 +1,91 @@
|
|||||||
theme = "dracula-purple"
|
theme = "dracula-purple"
|
||||||
|
|
||||||
[editor]
|
[editor]
|
||||||
rulers = [120]
|
rulers = [120]
|
||||||
shell = ["nu", "--stdin", "--no-newline", "-c"]
|
shell = ["nu", "--stdin", "--no-newline", "-c"]
|
||||||
true-color = true
|
true-color = true
|
||||||
cursorline = true
|
cursorline = true
|
||||||
color-modes = true
|
color-modes = true
|
||||||
bufferline = "always"
|
bufferline = "always"
|
||||||
line-number = "relative"
|
line-number = "relative"
|
||||||
auto-save = true
|
auto-save = true
|
||||||
|
|
||||||
[editor.cursor-shape]
|
|
||||||
insert = "bar"
|
|
||||||
normal = "block"
|
|
||||||
select = "underline"
|
|
||||||
|
|
||||||
[editor.statusline]
|
|
||||||
left = ["mode", "spinner", "spacer", "file-name"]
|
|
||||||
center = []
|
|
||||||
right = ["diagnostics", "selections", "position", "position-percentage", "primary-selection-length", "separator", "file-encoding", "file-line-ending", "file-type", "separator", "spacer", "version-control", "spacer"]
|
|
||||||
separator = " │"
|
|
||||||
|
|
||||||
[editor.lsp]
|
|
||||||
auto-signature-help = true
|
|
||||||
display-inlay-hints = true
|
|
||||||
|
|
||||||
[editor.indent-guides]
|
|
||||||
render = true
|
|
||||||
rainbow = "dim"
|
|
||||||
|
|
||||||
[editor.file-picker]
|
|
||||||
hidden = false
|
|
||||||
|
|
||||||
[editor.whitespace.render]
|
|
||||||
tab = "all"
|
|
||||||
nbsp = "all"
|
|
||||||
|
|
||||||
[keys.normal]
|
[editor.cursor-shape]
|
||||||
esc = ["collapse_selection", "keep_primary_selection"]
|
insert = "bar"
|
||||||
C-j = ["half_page_down", "goto_window_center", "align_view_center"]
|
normal = "block"
|
||||||
C-k = ["half_page_up", "goto_window_center", "align_view_center"]
|
select = "underline"
|
||||||
A-w = [":sh use ide.nu; ide write-here miw"]
|
|
||||||
A-W = [":sh use ide.nu; ide write-here miW"]
|
|
||||||
D = [":sh use ide.nu; ide write-here \"2y%d\"2p"]
|
|
||||||
|
|
||||||
[keys.select]
|
[editor.statusline]
|
||||||
esc = ["collapse_selection", "keep_primary_selection", "normal_mode"]
|
left = ["mode", "spinner", "spacer", "file-name"]
|
||||||
C-j = ["half_page_down", "goto_window_center"]
|
center = []
|
||||||
C-k = ["half_page_up", "goto_window_center"]
|
right = [
|
||||||
A-w = [":sh use ide.nu; ide write-here miw"]
|
"diagnostics",
|
||||||
A-W = [":sh use ide.nu; ide write-here miW"]
|
"selections",
|
||||||
D = [":sh use ide.nu; ide write-here \"9y%d\"9p"]
|
"position",
|
||||||
|
"position-percentage",
|
||||||
|
"primary-selection-length",
|
||||||
|
"separator",
|
||||||
|
"file-encoding",
|
||||||
|
"file-line-ending",
|
||||||
|
"file-type",
|
||||||
|
"separator",
|
||||||
|
"spacer",
|
||||||
|
"version-control",
|
||||||
|
"spacer",
|
||||||
|
]
|
||||||
|
separator = " │"
|
||||||
|
|
||||||
|
[editor.lsp]
|
||||||
|
auto-signature-help = true
|
||||||
|
display-inlay-hints = true
|
||||||
|
|
||||||
|
[editor.indent-guides]
|
||||||
|
render = true
|
||||||
|
rainbow = "dim"
|
||||||
|
|
||||||
[keys.normal."A-/"]
|
[editor.file-picker]
|
||||||
j = ["goto_line_start", ":insert-output use ide.nu; ide doc-comment java-style", ":format", "normal_mode", "move_visual_line_up", "insert_at_line_end"]
|
hidden = false
|
||||||
r = ["goto_line_start", ":insert-output use ide.nu; ide doc-comment rust-style", ":format", "normal_mode", "insert_at_line_end"]
|
|
||||||
|
|
||||||
|
[editor.whitespace.render]
|
||||||
|
tab = "all"
|
||||||
|
nbsp = "all"
|
||||||
|
|
||||||
|
[keys.normal]
|
||||||
|
esc = ["collapse_selection", "keep_primary_selection"]
|
||||||
|
C-j = ["half_page_down", "goto_window_center", "align_view_center"]
|
||||||
|
C-k = ["half_page_up", "goto_window_center", "align_view_center"]
|
||||||
|
A-w = [":sh use ide.nu; ide write-here miw"]
|
||||||
|
A-W = [":sh use ide.nu; ide write-here miW"]
|
||||||
|
D = [":sh use ide.nu; ide write-here \"2y%d\"2p"]
|
||||||
|
# Delete default deletion behaviour to not yank unless used with alt
|
||||||
|
A-d = "delete_selection"
|
||||||
|
d = "delete_selection_noyank"
|
||||||
|
A-c = "change_selection"
|
||||||
|
c = "change_selection_noyank"
|
||||||
|
|
||||||
|
[keys.select]
|
||||||
|
esc = ["collapse_selection", "keep_primary_selection", "normal_mode"]
|
||||||
|
C-j = ["half_page_down", "goto_window_center"]
|
||||||
|
C-k = ["half_page_up", "goto_window_center"]
|
||||||
|
A-w = [":sh use ide.nu; ide write-here miw"]
|
||||||
|
A-W = [":sh use ide.nu; ide write-here miW"]
|
||||||
|
D = [":sh use ide.nu; ide write-here \"9y%d\"9p"]
|
||||||
|
|
||||||
|
[keys.normal."A-/"]
|
||||||
|
j = [
|
||||||
|
"goto_line_start",
|
||||||
|
"add_newline_above",
|
||||||
|
"move_visual_line_up",
|
||||||
|
":insert-output use ide.nu; ide doc-comment java-style",
|
||||||
|
":format",
|
||||||
|
"normal_mode",
|
||||||
|
"move_visual_line_up",
|
||||||
|
"insert_at_line_end",
|
||||||
|
]
|
||||||
|
r = [
|
||||||
|
"goto_line_start",
|
||||||
|
":insert-output use ide.nu; ide doc-comment rust-style",
|
||||||
|
":format",
|
||||||
|
"normal_mode",
|
||||||
|
"insert_at_line_end",
|
||||||
|
]
|
||||||
|
Loading…
Reference in New Issue