repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

nu: update to new config version

6b0b26278158f31c7636578d97ad9303d9a9bd4f

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (11)

+47 / −34 text lines

Diff layout

PC-00625.symlinks

Modified

+1 / −1 text lines

2020~/AppData/Roaming/Subversion/config
2222cargo/config.toml
23~/.cargo/config.toml
23~/scoop/persist/rustup/.cargo/config.toml
2525indexa/config.windows.toml
2626~/AppData/Roaming/indexa/config.toml

helix/config.toml

Modified

+15 / −2 text lines

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

helix/themes/nugu.toml

Modified

+3 / −3 text lines

4646"ui.cursor" = { bg = "ui_cursor" }
4747"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" }
5050"ui.cursor.match" = { fg = "important_global", modifiers = ["slow_blink"] }
5252"ui.selection" = { fg = "minor", bg = "ui_minor" }
8080"ui.highlight" = { bg = "ui_cursor" }
8282"ui.virtual.ruler" = { bg = "ui_backdrop" }
83"ui.virtual.whitespace" = { fg = "minor", modifiers = ["dim"] }
83"ui.virtual.whitespace" = { fg = "minor_backdrop" }
8585"diagnostic" = { fg = "ui_normal", modifiers = ["underlined"] }

neovim/lua/bugabinga/treesitter.lua

Modified

+2 / −2 text lines

99 'hlargs',
1010 'neogen',
1111} (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
1515 configs.setup {
1616 -- A list of parser names, or "all"

nushell/config.nu

Modified

+1 / −0 text lines

6868# The default config record. This is where much of your global configuration is setup.
6969let-env config = {
70 show_banner: false
7071 filesize_metric: false
7172 table_mode: light # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
7273 use_ls_colors: true

nushell/env.nu

Modified

+0 / −7 text lines

55let-env DOTFILES = ( $env.NURC_DIR | path join ".." | path expand )
66let-env WORKSPACE = if $env.WIN32? { "W:/" } else { "~/Workspace" | path expand }
77let-env NOTES = if $env.WIN32? { "N:/" } else { "~/Notes" | path expand }
8let-env CARGO_HOME = ( "~/.cargo" | path expand )
109# theme for ls and other programs, that use LS_COLORS
1110let-env LS_COLORS = (vivid generate nord)
3029 ($nu.config-path | path dirname | path join 'modules'),
3130 ($nu.config-path | path dirname | path join 'completions')
34# Directories to search for plugin binaries when calling register
35let-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

2424 let pwd = ($env.PWD | path expand)
2525 let z_jump = ( do --ignore-errors { zoxide query --exclude $pwd -- $rest } )
27 if ($z_jump | empty?) {
27 if ($z_jump | is-empty) {
2828 error make {
2929 msg: "Zoxide could not find any match for the given query.",
3030 label: {
6363def set-window-title [] {
6464 # normalize path
6565 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)" }
6767 # 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 {
6969 echo ([ (ansi title) $icon " " ( $pwd | path basename ) (ansi reset) ] | str collect)
7070 }

nushell/modules/table.nu

Modified

+1 / −1 text lines

22export def "has-column?" [
33 name: string # Name of the column to check for
44] {
5 transpose | any? Column0 == $name
5 transpose | any Column0 == $name
66}
88# Flattens a table into a string separated by a single space character.

tools/cargo-tools.nu

Modified

+15 / −11 text lines

77let cargo_crates = [
88 [ name bin features];
99 [ "sccache" "sccache" [] ]
10 [ "inferno" "inferno" [] ]
10 [ "inferno" "inferno-flamegraph" [] ]
1111 [ "nu" "nu" [ "--features" "extra" ] ]
1212 [ "sd" "sd" [] ]
1313 [ "ouch" "ouch" [] ]
3434 # [ "bandwhich" "bandwhich" [] ] masked until https://github.com/imsnif/bandwhich/issues/233
3535 [ "lychee" "lychee" [] ]
3636 [ "viu" "viu" [] ]
37 [ "vivid" "vivid" [] ]
3738 [ "licensor" "licensor" [] ]
3839 [ "gib" "gib" [] ]
3940 [ "silicon" "silicon" [] ]
6768def install-helix-editor [] {
6869 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) ) {
7271 git clone https://github.com/helix-editor/helix
73 }
72 }
7473 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 }
8084# install all my favorite crate, only if they are not already in PATH.
8185def main [] {
8286 $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
8690 } else {
8791 echo $"($crate.name) already installed"
8892 }

topgrade/topgrade.windows.toml

Modified

+3 / −2 text lines

11# Disable specific steps - same options as the command line flag
2disable = ["wsl"]
2disable = ["wsl", "vim"]
44assume_yes = true
3838# Commands to run before anything
3939[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"
4242[commands]
4343"00 - Refresh dotfiles" = "java W:/dotfiles/bootstripper.java W:/dotfiles"
4444"01 - Install Cargo Tools" = "nu --env-config ~/AppData/Roaming/nushell/env.nu W:/dotfiles/tools/cargo-tools.nu"
4545"02 - Advantage-PM Client" = "nu X:/update_apm_client.nu"
4646"03 - MeMate" = "nu X:/update_memate.nu"
47"04 - TLDR" = "tldr --update"

wezterm/wezterm.lua

Modified

+3 / −2 text lines

88local enable_wayland = false
99local window_decorations = 'RESIZE'
1010local font_size = 11.0
11local font = wez.font('BlexMono Nerd Font', { weight = 'Regular', stretch = 'Condensed' })
11local font = wez.font('IBM Plex Mono')
1313if hostname == 'x230' then
1414 enable_wayland = true
1616elseif hostname == 'pop-os' then
1717 font_size = 12
1818elseif hostname == 'PC-00625' then
19 font_size = 12
19 font_size = 14
20 font = wez.font('Cascadia Mono')
2021 window_decorations = 'TITLE|RESIZE'
2122end