81 lines
1.4 KiB
TOML
81 lines
1.4 KiB
TOML
theme = "jdkaplan"
|
||
|
||
[editor]
|
||
scrolloff = 1
|
||
cursorline = true
|
||
trim-final-newlines = true
|
||
trim-trailing-whitespace = true
|
||
end-of-line-diagnostics = "hint"
|
||
|
||
[editor.cursor-shape]
|
||
insert = "bar"
|
||
normal = "block"
|
||
select = "underline"
|
||
|
||
[editor.inline-diagnostics]
|
||
cursor-line = "warning"
|
||
|
||
[editor.file-picker]
|
||
hidden = false
|
||
deduplicate-links = false
|
||
|
||
[editor.indent-guides]
|
||
render = true
|
||
character = "┊"
|
||
skip-levels = 1
|
||
|
||
[editor.gutters]
|
||
layout = [
|
||
"diff",
|
||
"diagnostics",
|
||
"line-numbers",
|
||
"spacer",
|
||
]
|
||
line-numbers = { min-width = 1 }
|
||
|
||
[editor.lsp]
|
||
display-inlay-hints = true
|
||
inlay-hints-length-limit = 10
|
||
|
||
[editor.soft-wrap]
|
||
enable = true
|
||
wrap-indicator = ""
|
||
max-indent-retain = 0
|
||
|
||
[editor.statusline]
|
||
left = [
|
||
"mode",
|
||
"spinner",
|
||
"file-name",
|
||
"read-only-indicator",
|
||
"file-modification-indicator",
|
||
]
|
||
center = []
|
||
right = [
|
||
"diagnostics",
|
||
"selections",
|
||
"position",
|
||
"position-percentage",
|
||
"file-encoding",
|
||
]
|
||
|
||
[editor.whitespace.characters]
|
||
space = "·"
|
||
nbsp = "⍽"
|
||
nnbsp = "␣"
|
||
tab = "→"
|
||
newline = "⏎"
|
||
tabpad = "‒"
|
||
|
||
[keys.normal]
|
||
"C-l" = [":config-reload", ":redraw"]
|
||
|
||
[keys.normal.space.g]
|
||
"b" = ":sh git blame -L '%{selection_line_start},%{selection_line_end}' '%{buffer_name}'"
|
||
"f" = "changed_file_picker"
|
||
"h" = ":noop %sh{gh browse '%{buffer_name}:%{cursor_line}' --commit=%sh{git rev-parse HEAD}}"
|
||
|
||
[keys.normal.space.t]
|
||
"q" = ":reflow"
|
||
"w" = ":toggle whitespace.render all none"
|
||
"W" = ":toggle soft-wrap.enable"
|