repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

sync

595149a6c74c267f1598143ae6e308277e11af02

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (9)

cargo/config.toml

Modified
8 8 [profile.release]
9 9 # link time optimization is slow, but allows inter-crate analysis
10 10 lto = "fat"
11 +# slam crates together for the optimizer to munch on
12 +codegen-units = 1
12 14 # use the fastest known linker out there (2022)
13 15 [target.x86_64-unknown-linux-gnu]
14 16 # not sure why that is necessary, but without it, rustc seems to pass wrong arguments to mold.
15 -linker = "clang"
16 -rustflags = ["-C", "link-arg=--ld-path=mold"]
17 +rustflags = ["-C", "link-arg=-fuse-ld=mold"]

helix/config.toml

Modified
1 -theme = "nugu-dark"
1 +theme = "nugu-light"
3 3 [editor]
4 4 shell = ["nu", "--commands"]

neovim/lazy-lock.json

Modified
42 42 "nvim-neoclip.lua": { "branch": "main", "commit": "32e05f2d23dc5b6a284a688c0535a83d1bfc633f" },
43 43 "nvim-rulebook": { "branch": "main", "commit": "bc5e3874a9870709ec91152f9efce6dad49ca862" },
44 44 "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
45 - "nvim-treesitter": { "branch": "master", "commit": "cc2c11c403a9143827501223b4ee64432dcaf246" },
45 + "nvim-treesitter": { "branch": "master", "commit": "5a2ff8b7ca5470b1011ed82ef3fdd53139ffc467" },
46 46 "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
47 - "nvim-treesitter-textobjects": { "branch": "master", "commit": "4a2d05ec24eaa6b655c7d19092a3b6c0219d46b9" },
47 + "nvim-treesitter-textobjects": { "branch": "master", "commit": "b91c98afa6c42819aea6cbc1ba38272f5456a5cf" },
48 48 "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
49 - "nvim-web-devicons": { "branch": "master", "commit": "6b53401918a9033a41159d012160c5fb5eb249ae" },
49 + "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
50 50 "oil.nvim": { "branch": "master", "commit": "1eb9fb35a4613518f79790117ed82c367a0b4a22" },
51 51 "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
52 52 "range-highlight.nvim": { "branch": "master", "commit": "8b5e8ccb3460b2c3675f4639b9f54e64eaab36d9" },

nushell/config.nu

Modified
13 13 # some experimental options
14 14 buffer_editor: ["nvim" "--clean"]
15 - highlight_resolved_externals : true
15 + highlight_resolved_externals : true
16 16 use_kitty_protocol : true
17 17 render_right_prompt_on_last_line: true

nushell/login.nu

Modified
17 17 use svn-completions.nu *
19 -use svn-completions.nu *
21 19 if $env.WIN32 {
22 20 use refreshenv.nu *

nushell/scripts/direnv.nu

Modified
9 9 def direnv [] {
10 - [
11 - {
12 - condition: {|before, after| ($before != $after) and ($after | path join '.env' | path exists) }
13 - code: r#'
14 - open .env
15 - | lines
16 - | parse --regex '\s*(?P<key>.+?)\s*=\s*?(?P<value>.+)?\s*'
17 - | reduce --fold {} { | entry, acc|
18 - $acc | upsert $entry.key ( $entry.value | str trim | expand-home )
19 - }
20 - | load-env
21 - '#
22 - }
23 - ]
10 + [
11 + {
12 + condition: {|before, after| ($before != $after) and ($after | path join '.env' | path exists) }
13 + code: r#'
14 + open .env
15 + | lines
16 + | parse --regex '\s*(?P<key>.+?)\s*=\s*?(?P<value>.+)?\s*'
17 + | reduce --fold {} { | entry, acc|
18 + $acc | upsert $entry.key ( $entry.value | str trim | expand-home )
19 + }
20 + | load-env
21 + '#
22 + }
23 + ]
26 26 export-env {
27 - $env.config = ( $env.config | upsert hooks.env_change.PWD { |config|
28 - let o = ($config | get -i hooks.env_change.PWD)
29 - let val = (direnv)
30 - if $o == null {
31 - $val
32 - } else {
33 - $o | append $val
34 - }
35 - })
27 + $env.config = ( $env.config | upsert hooks { |config|
28 + let o = ($config | get -i hooks.env_change.PWD)
29 + let val = (direnv)
30 + let appended = if $o == null {
31 + $val
32 + } else {
33 + $o | append $val
34 + }
35 + env_change: {
36 + PWD: $appended
37 + }
38 + })

nushell/scripts/notes.nu

Modified
33 33 # TODO: print some high level view of the notes. tree, graph, text ?
36 -def new_note_id [] { random binary 3 | encode new-base64 --nopad --url }
36 +def new_note_id [] { random binary 3 | encode base64 --nopad --url }
38 38 def new_note [
39 39 title: string # title of note. will be used for title and initial heading

nushell/scripts/sy.nu

Modified
17 17 export def up [] {
18 18 check-deps
20 + # FIXME: make list of repos and factor sync into functions
20 21 let git_add_notes = [ '-C' $env.NOTES add '--all' ]
21 22 let git_commit_notes = [ '-C' $env.NOTES commit '--all' ]
22 23 let git_push_notes = [ '-C' $env.NOTES push '-ff' ]

wezterm/bugabinga/title.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
3 +local icons = {
4 + '',
5 + '',
6 + '',
7 + '',
8 + '',
9 + '',
10 + '',
11 + '',
12 + '',
15 +wez.on('format-window-title', function(tab, pane, tabs, panes, config)
16 + local zoomed = ''
17 + if tab.active_pane.is_zoomed then
18 + zoomed = '[Z] '
19 + end
21 + local index = ''
22 + if #tabs > 1 then
23 + index = string.format('[%d/%d] ', tab.tab_index + 1, #tabs)
24 + end
26 + return zoomed .. index .. tab.active_pane.title
27 +end)