1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2024-12-19 00:15:20 +01:00
parent 77eccec635
commit 16ea2e2d7c
No known key found for this signature in database
18 changed files with 407 additions and 15 deletions

View file

@ -0,0 +1,117 @@
theme = "github_dark_high_contrast_transparent"
[editor]
line-number = "relative"
scroll-lines = 3
bufferline = "multiple"
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"
[editor.lsp]
display-messages = true
[editor.whitespace.render]
space = "none"
tab = "none"
nbsp = "all"
nnbsp = "all"
newline = "none"
[editor.whitespace.characters]
space = "·"
nbsp = "⍽"
nnbsp = "␣"
tab = "→"
newline = "⏎"
tabpad = "·"
[editor.indent-guides]
render = true
character = "▏"
skip-levels = 1
[editor.soft-wrap]
enable = true
[editor.file-picker]
hidden = false
[editor.statusline]
mode.normal = "NORMAL"
mode.insert = "INSERT"
mode.select = "SELECT"
[editor.auto-save]
focus-lost = true
after-delay.enable = true
after-delay.timeout = 3000
[keys.normal]
# Nicities
esc = ["collapse_selection", "keep_primary_selection"]
C-h = "select_prev_sibling"
C-j = "shrink_selection"
C-k = "expand_selection"
C-l = "select_next_sibling"
o = ["open_below", "normal_mode"]
O = ["open_above", "normal_mode"]
C-r = "redo"
x = "extend_line"
# Vim-like
V = ["select_mode", "extend_to_line_bounds"]
C = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection", "insert_mode"]
D = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection"]
G = "goto_last_line"
# Vim-like but also generally useful
"{" = ["goto_prev_paragraph", "collapse_selection"]
"}" = ["goto_next_paragraph", "collapse_selection"]
i = ["insert_mode", "collapse_selection"]
a = ["append_mode", "collapse_selection"]
0 = "goto_first_nonwhitespace"
"^" = "goto_line_start"
"$" = "goto_line_end"
u = ["undo", "collapse_selection"]
## Search for word under cursor
"*" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_next"]
"#" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_prev"]
[keys.insert]
esc = ["collapse_selection", "normal_mode"]
[keys.select]
# Nicities
esc = ["collapse_selection", "keep_primary_selection", "normal_mode"]
";" = ["collapse_selection", "normal_mode"]
x = "extend_line"
# Vim-like
V = ["select_mode", "extend_to_line_bounds"]
C = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection", "insert_mode"]
D = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection"]
G = "goto_last_line"
# Vim-like but also generally useful
"{" = ["goto_prev_paragraph", "collapse_selection"]
"}" = ["goto_next_paragraph", "collapse_selection"]
i = "select_textobject_inner"
a = "select_textobject_around"
0 = "goto_first_nonwhitespace"
"^" = "goto_line_start"
"$" = "goto_line_end"

View file

@ -0,0 +1,3 @@
[[language]]
name = "gotmpl"
file-types = ["tmpl"]

View file

@ -0,0 +1,2 @@
inherits = "github_dark_high_contrast"
"ui.background" = { }