repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk

cc1fee7a1e89c54c4108f9b3c2113c1e1c92498d

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (11)

+47 / −34 text lines

PC-00625.symlinks

Modified

+1 / −1 text lines

20 20 ~/AppData/Roaming/Subversion/config
22 22 cargo/config.toml
23 -~/.cargo/config.toml
23 +~/scoop/persist/rustup/.cargo/config.toml
25 25 indexa/config.windows.toml
26 26 ~/AppData/Roaming/indexa/config.toml

helix/config.toml

Modified

+15 / −2 text lines

17 17 scrolloff = 5
18 18 scroll-lines = 1
20 +cursorline = true
21 +gutters = [ "line-numbers", "diagnostics", "spacer" ]
22 +color-modes = true
24 +[editor.statusline]
25 +left = ["mode", "spacer","selections", "position", "separator", "position-percentage"]
26 +center = ["file-name", "separator", "file-encoding", "file-line-ending", "file-type"]
27 +right = ["diagnostics", "spacer", "spinner"]
28 +separator = "·"
20 30 [editor.lsp]
21 31 display-messages = true
34 44 newline = "none"
36 46 [editor.whitespace.characters]
37 -nbsp = "␠"
38 -newline = "␤"
47 +space = "·"
48 +nbsp = "⍽"
49 +tab = "─"
50 +tabpad = "╴"
51 +newline = "⏎"

helix/themes/nugu.toml

Modified

+3 / −3 text lines

46 46 "ui.cursor" = { bg = "ui_cursor" }
47 47 "ui.cursor.primary" = { fg = "important_global", bg = "ui_cursor" }
48 -"ui.cursor.insert" = { bg = "debug" }
49 -"ui.cursor.select" = { fg = "debug", bg = "debug" }
48 +"ui.cursor.insert" = { bg = "accent" }
49 +"ui.cursor.select" = { fg = "accent", bg = "accent" }
50 50 "ui.cursor.match" = { fg = "important_global", modifiers = ["slow_blink"] }
52 52 "ui.selection" = { fg = "minor", bg = "ui_minor" }
80 80 "ui.highlight" = { bg = "ui_cursor" }
82 82 "ui.virtual.ruler" = { bg = "ui_backdrop" }
83 -"ui.virtual.whitespace" = { fg = "minor", modifiers = ["dim"] }
83 +"ui.virtual.whitespace" = { fg = "minor_backdrop" }
85 85 "diagnostic" = { fg = "ui_normal", modifiers = ["underlined"] }

neovim/lua/bugabinga/treesitter.lua

Modified

+2 / −2 text lines

9 9 'hlargs',
10 10 'neogen',
11 11 } (function(install, configs, parsers, hlargs, neogen)
12 - install.compilers = { 'zig cc', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' }
13 - install.prefer_git = true
12 + install.compilers = { 'zig', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' }
13 + -- install.prefer_git = true
15 15 configs.setup {
16 16 -- A list of parser names, or "all"

nushell/config.nu

Modified

+1 / −0 text lines

68 68 # The default config record. This is where much of your global configuration is setup.
69 69 let-env config = {
70 + show_banner: false
70 71 filesize_metric: false
71 72 table_mode: light # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
72 73 use_ls_colors: true

nushell/env.nu

Modified

+0 / −7 text lines

5 5 let-env DOTFILES = ( $env.NURC_DIR | path join ".." | path expand )
6 6 let-env WORKSPACE = if $env.WIN32? { "W:/" } else { "~/Workspace" | path expand }
7 7 let-env NOTES = if $env.WIN32? { "N:/" } else { "~/Notes" | path expand }
8 -let-env CARGO_HOME = ( "~/.cargo" | path expand )
10 9 # theme for ls and other programs, that use LS_COLORS
11 10 let-env LS_COLORS = (vivid generate nord)
30 29 ($nu.config-path | path dirname | path join 'modules'),
31 30 ($nu.config-path | path dirname | path join 'completions')
34 -# Directories to search for plugin binaries when calling register
35 -let-env NU_PLUGIN_DIRS = [
36 - ($nu.config-path | path dirname | path join 'plugins'),
37 - ($env.CARGO_HOME | path join 'bin'),
38 -]

nushell/modules/prompt.nu

Modified

+3 / −3 text lines

24 24 let pwd = ($env.PWD | path expand)
25 25 let z_jump = ( do --ignore-errors { zoxide query --exclude $pwd -- $rest } )
27 - if ($z_jump | empty?) {
27 + if ($z_jump | is-empty) {
28 28 error make {
29 29 msg: "Zoxide could not find any match for the given query.",
30 30 label: {
63 63 def set-window-title [] {
64 64 # normalize path
65 65 let pwd = ( $env.PWD | path expand )
66 - let icon = if (icons | any? path == $pwd) { ( icons | where path == $pwd | get icon.0 ) } else { $"(char nf_folder1)" }
66 + let icon = if (icons | any path == $pwd) { ( icons | where path == $pwd | get icon.0 ) } else { $"(char nf_folder1)" }
67 67 # Some terminals freeze, if they do not support this OSC
68 - if (env | any? name == TERM_PROGRAM) && $env.TERM_PROGRAM == WezTerm {
68 + if (env | any name == TERM_PROGRAM) && $env.TERM_PROGRAM == WezTerm {
69 69 echo ([ (ansi title) $icon " " ( $pwd | path basename ) (ansi reset) ] | str collect)

nushell/modules/table.nu

Modified

+1 / −1 text lines

2 2 # Check whether table in pipeline has a column with given name
3 3 export def "has-column?" [
4 4 name: string # Name of the column to check for
6 - transpose | any? Column0 == $name
6 + transpose | any Column0 == $name
9 9 # Flattens a table into a string separated by a single space character.

tools/cargo-tools.nu

Modified

+15 / −11 text lines

7 7 let cargo_crates = [
8 8 [ name bin features];
9 9 [ "sccache" "sccache" [] ]
10 - [ "inferno" "inferno" [] ]
10 + [ "inferno" "inferno-flamegraph" [] ]
11 11 [ "nu" "nu" [ "--features" "extra" ] ]
12 12 [ "sd" "sd" [] ]
13 13 [ "ouch" "ouch" [] ]
34 34 # [ "bandwhich" "bandwhich" [] ] masked until https://github.com/imsnif/bandwhich/issues/233
35 35 [ "lychee" "lychee" [] ]
36 36 [ "viu" "viu" [] ]
37 + [ "vivid" "vivid" [] ]
37 38 [ "licensor" "licensor" [] ]
38 39 [ "gib" "gib" [] ]
39 40 [ "silicon" "silicon" [] ]
67 68 def install-helix-editor [] {
68 69 cd $env.WORKSPACE
69 - if ( $env.WORKSPACE | path join "helix/.git" | path exists ) {
70 - git -C helix pull
71 - } else {
70 + if ( not ($env.WORKSPACE | path join "helix/.git" | path exists) ) {
72 71 git clone https://github.com/helix-editor/helix
73 - }
72 + }
74 73 cd helix
75 - cargo install --locked --path helix-term
76 - hx --grammar fetch | ignore
77 - hx --grammar build | ignore
74 + git fetch
75 + # check if fetch actually downloaded anything new
76 + if (not ((git rev-parse HEAD) == (git rev-parse @{u}))) {
77 + git pull
78 + cargo +stable-msvc install --path helix-term --profile opt
79 + hx --grammar fetch | ignore
80 + hx --grammar build | ignore
81 + }
80 84 # install all my favorite crate, only if they are not already in PATH.
81 85 def main [] {
82 86 $cargo_crates | each { | crate |
83 - if ( which $crate.bin | empty? ) {
84 - echo $'cargo install --locked ($crate.name) ($crate.features)'
85 - cargo install --locked $crate.name $crate.features
87 + if ( which $crate.bin | is-empty ) {
88 + echo $'cargo install ($crate.name) ($crate.features)'
89 + cargo install $crate.name $crate.features
86 90 } else {
87 91 echo $"($crate.name) already installed"

topgrade/topgrade.windows.toml

Modified

+3 / −2 text lines

1 1 # Disable specific steps - same options as the command line flag
2 -disable = ["wsl"]
2 +disable = ["wsl", "vim"]
4 4 assume_yes = true
38 38 # Commands to run before anything
39 39 [pre_commands]
40 -"01 - Winget Backup" = "winget export --source winget 'D:/Tools/winget_installed_apps.json' *> $null"
40 +"01 - Scoop Export" = "scoop export --config > 'X:/scoop_installed_apps.json' *> $null"
42 42 [commands]
43 43 "00 - Refresh dotfiles" = "java W:/dotfiles/bootstripper.java W:/dotfiles"
44 44 "01 - Install Cargo Tools" = "nu --env-config ~/AppData/Roaming/nushell/env.nu W:/dotfiles/tools/cargo-tools.nu"
45 45 "02 - Advantage-PM Client" = "nu X:/update_apm_client.nu"
46 46 "03 - MeMate" = "nu X:/update_memate.nu"
47 +"04 - TLDR" = "tldr --update"

wezterm/wezterm.lua

Modified

+3 / −2 text lines

8 8 local enable_wayland = false
9 9 local window_decorations = 'RESIZE'
10 10 local font_size = 11.0
11 -local font = wez.font('BlexMono Nerd Font', { weight = 'Regular', stretch = 'Condensed' })
11 +local font = wez.font('IBM Plex Mono')
13 13 if hostname == 'x230' then
14 14 enable_wayland = true
16 16 elseif hostname == 'pop-os' then
17 17 font_size = 12
18 18 elseif hostname == 'PC-00625' then
19 - font_size = 12
19 + font_size = 14
20 + font = wez.font('Cascadia Mono')
20 21 window_decorations = 'TITLE|RESIZE'