Update dotfiles

main
Julius Riegel 3 months ago
parent 186a8300cc
commit 1ef80a61bb
No known key found for this signature in database
GPG Key ID: F26D704A1D3394EB

@ -18,7 +18,20 @@ select = "underline"
[editor.statusline]
left = ["mode", "spinner", "spacer", "file-name"]
center = []
right = ["diagnostics", "selections", "position", "position-percentage", "separator", "file-encoding", "file-line-ending", "file-type", "separator", "spacer", "version-control", "spacer"]
right = [
"diagnostics",
"selections",
"position",
"position-percentage",
"separator",
"file-encoding",
"file-line-ending",
"file-type",
"separator",
"spacer",
"version-control",
"spacer",
]
separator = " │"
[editor.lsp]
@ -43,6 +56,11 @@ 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"]
@ -53,7 +71,20 @@ 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", ":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"]
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",
]

@ -36,7 +36,8 @@ typescript = {}
[language-server.vls]
command = "vls"
args = []
args = ["--stdio"]
config = { typescript = { tsdk = "node_modules/typescript/lib/" }}
[language-server.hx-lsp]
@ -137,6 +138,12 @@ auto-format = true
formatter = { command = "kdlfmt" }
[[language]]
name = "toml"
auto-format = true
formatter = { command = "taplo", args = ["fmt", "--option", "indent_entries=true", "--option", "indent_tables=true", "-"] }
[[language]]
name = "pug"
language-servers = ["pug-lsp"]
@ -187,8 +194,18 @@ grammar = "jora"
name = "vue"
auto-format = true
formatter = { command = "biome" , args = ["format", "--stdin-file-path=file.vue"] }
language-servers = [ "vls" ]
language-servers = [ "vls", "biome" ]
[[language]]
name = "env"
file-types = [{ glob = ".env" }, { glob = ".env.*" }, { glob = ".envrc" }, { glob = ".envrc.*" }, { glob = "*.env" }]
[[language]]
name = "scheme"
formatter = { command = "schemat" }
[[language]]
name = "svelte"
auto-format = true

@ -11,6 +11,36 @@ export def `follow nuon-lines` [] {
lines | each {|it| try { $it | from nuon } catch { {msg: $it} } | table --expand | print} | ignore
}
export def `diff-all` [...files] {
if ($files | length) < 2 {
error make { msg: "you have to provide at least two files"}
}
let diffs = $files | window 2
mut index = 0
loop {
difft --context 100 ...($diffs | get $index)
match (input -n 1) {
"n" => {
$index = $index + 1
},
"p" => {
$index = $index - 1
},
"q" => {
break
}
}
if $index > ($diffs | length) - 1 {
$index -= 1;
} else if $index < 0 {
$index = 0
}
}
}
def --wrapped with-flag [...flag] {
if ($in | is-empty) { [] } else { [...$flag $in] }
}

@ -70,6 +70,8 @@ keybinds {
unbind "Alt u"
unbind "Alt I"
unbind "Alt a"
unbind "Alt -"
unbind "Alt +"
bind "Ctrl f" {
ToggleFocusFullscreen

@ -58,6 +58,7 @@
[user]
email = julius.riegel@unitb.de
name = Julius Riegel
signingkey = A8882DF407A6402EEF4F4D18F26D704A1D3394EB
[credential]
helper = store
[filter "lfs"]
@ -65,6 +66,10 @@
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[commit]
gpgSign = true
[tag]
forceSignAnnotated = true
[alias]
c = commit -s
commit = commit -s

@ -116,6 +116,7 @@ config.modules = {
},
vue = mod {
'nodePackages.vls',
'nodePackages.vue-language-server'
},
deno = mod {
'deno'

Loading…
Cancel
Save