repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

nushell update, wezterm update

5e9304b0ffc4d1fe7b6bd8c60ad9848d501a0bff

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (3)

+164 / −39 text lines

Diff layout

helix/config.toml

Modified

+16 / −3 text lines

1818scroll-lines = 1
2020cursorline = true
21gutters = [ "line-numbers", "diagnostics", "spacer" ]
21gutters = ["line-numbers", "diagnostics", "spacer"]
2222color-modes = true
2424[editor.statusline]
25left = ["mode", "spacer","selections", "position", "separator", "position-percentage"]
26center = ["file-name", "separator", "file-encoding", "file-line-ending", "file-type"]
25left = [
26 "mode",
27 "spacer",
28 "selections",
29 "position",
30 "separator",
31 "position-percentage",
32]
33center = [
34 "file-name",
35 "separator",
36 "file-encoding",
37 "file-line-ending",
38 "file-type",
39]
2740right = ["diagnostics", "spacer", "spinner"]
2841separator = "·"

nushell/modules/prompt.nu

Modified

+5 / −5 text lines

3131 #normalize path
3232 let pwd = ($env.PWD | path expand)
34 let svn_relative_cmd = ( do --ignore-errors { ^svn info --show-item relative-url --no-newline $pwd } | complete )
34 let svn_relative_cmd = ( do --ignore-errors { ^svn info --show-item relative-url --no-newline $pwd | complete } )
3535 let svn_relative_path = if ($svn_relative_cmd.exit_code == 0) { $" 🐢 (char nf_branch) ($svn_relative_cmd.stdout)" }
3737 let git_status = ( gstat )
9494 # The prompt indicators are environmental variables that represent
9595 # the state of the prompt
96 let-env PROMPT_INDICATOR = $"(ansi purple) (char prompt) (ansi reset)"
97 let-env PROMPT_INDICATOR_VI_INSERT = $"(ansi purple) (char pipe) (ansi reset)"
98 let-env PROMPT_INDICATOR_VI_NORMAL = $"(ansi purple) (char prompt) (ansi reset)"
99 let-env PROMPT_MULTILINE_INDICATOR = $"(ansi purple) (char prompt)(char prompt) (ansi reset)"
96 let-env PROMPT_INDICATOR = $"(ansi purple) (char prompt) (ansi reset)"
97 let-env PROMPT_INDICATOR_VI_INSERT = $"(ansi purple) (char pipe) (ansi reset)"
98 let-env PROMPT_INDICATOR_VI_NORMAL = $"(ansi purple) (char prompt) (ansi reset)"
99 let-env PROMPT_MULTILINE_INDICATOR = $"(ansi purple) (char prompt)(char prompt) (ansi reset)"

wezterm/wezterm.lua

Modified

+143 / −31 text lines

88local enable_wayland = false
99local window_decorations = 'RESIZE'
1010local font_size = 11.0
11local font = wez.font('IBM Plex Mono')
11local font = wez.font 'IBM Plex Mono'
1313if hostname == 'x230' then
14 enable_wayland = true
15 window_decorations = 'NONE'
14 enable_wayland = true
15 window_decorations = 'NONE'
1616elseif hostname == 'pop-os' then
17 font_size = 12
17 font_size = 12
1818elseif hostname == 'PC-00625' then
19 font_size = 14
20 font = wez.font('Cascadia Mono')
21 window_decorations = 'TITLE|RESIZE'
19 font_size = 14
20 font = wez.font 'Cascadia Mono'
21 window_decorations = 'TITLE|RESIZE'
2222end
24-- Show which key table is active in the status area
25wez.on('update-right-status', function(window, pane)
26 local name = window:active_key_table()
27 if name then
28 name = 'TABLE: ' .. name
29 end
30 window:set_right_status(name or '')
31end)
33local leader = { key = 'Space', mods = 'CTRL|SHIFT', timeout_milliseconds = 1000 }
34local keys = {
35 -- CTRL+SHIFT+Space, followed by 'r' will put us in resize-pane
36 -- mode until we cancel that mode.
37 {
38 key = 'r',
39 mods = 'LEADER',
40 action = wez.action.ActivateKeyTable {
41 name = 'resize_pane',
42 one_shot = false,
43 },
44 },
46 -- CTRL+SHIFT+Space, followed by 'a' will put us in activate-pane
47 -- mode until we press some other key or until 1 second (1000ms)
48 -- of time elapses
49 {
50 key = 'a',
51 mods = 'LEADER',
52 action = wez.action.ActivateKeyTable {
53 name = 'activate_pane',
54 timeout_milliseconds = 1000,
55 },
56 },
58 -- Copy
59 {
60 key = 'c',
61 mods = 'CTRL|SHIFT',
62 action = wez.action.CopyTo 'Clipboard',
63 },
64 -- Paste
65 {
66 key = 'v',
67 mods = 'CTRL|SHIFT',
68 action = wez.action.PasteFrom 'Clipboard',
69 },
70 -- Split left-right
71 {
72 key = 'v',
73 mods = 'LEADER',
74 action = wez.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
75 },
76 -- Split top-bottom
77 {
78 key = 'h',
79 mods = 'LEADER',
80 action = wez.action.SplitVertical { domain = 'CurrentPaneDomain' },
81 },
82 {
83 key = 'q',
84 mods = 'LEADER',
85 action = wez.action.QuitApplication,
86 },
87}
89local key_tables = {
90 -- Defines the keys that are active in our resize-pane mode.
91 -- Since we're likely to want to make multiple adjustments,
92 -- we made the activation one_shot=false. We therefore need
93 -- to define a key assignment for getting out of this mode.
94 -- 'resize_pane' here corresponds to the name="resize_pane" in
95 -- the key assignments above.
96 resize_pane = {
97 { key = 'LeftArrow', action = wez.action.AdjustPaneSize { 'Left', 1 } },
98 { key = 'h', action = wez.action.AdjustPaneSize { 'Left', 1 } },
100 { key = 'RightArrow', action = wez.action.AdjustPaneSize { 'Right', 1 } },
101 { key = 'l', action = wez.action.AdjustPaneSize { 'Right', 1 } },
103 { key = 'UpArrow', action = wez.action.AdjustPaneSize { 'Up', 1 } },
104 { key = 'k', action = wez.action.AdjustPaneSize { 'Up', 1 } },
106 { key = 'DownArrow', action = wez.action.AdjustPaneSize { 'Down', 1 } },
107 { key = 'j', action = wez.action.AdjustPaneSize { 'Down', 1 } },
109 -- Cancel the mode by pressing escape
110 { key = 'Escape', action = 'PopKeyTable' },
111 },
113 -- Defines the keys that are active in our activate-pane mode.
114 -- 'activate_pane' here corresponds to the name="activate_pane" in
115 -- the key assignments above.
116 activate_pane = {
117 { key = 'LeftArrow', action = wez.action.ActivatePaneDirection 'Left' },
118 { key = 'h', action = wez.action.ActivatePaneDirection 'Left' },
120 { key = 'RightArrow', action = wez.action.ActivatePaneDirection 'Right' },
121 { key = 'l', action = wez.action.ActivatePaneDirection 'Right' },
123 { key = 'UpArrow', action = wez.action.ActivatePaneDirection 'Up' },
124 { key = 'k', action = wez.action.ActivatePaneDirection 'Up' },
126 { key = 'DownArrow', action = wez.action.ActivatePaneDirection 'Down' },
127 { key = 'j', action = wez.action.ActivatePaneDirection 'Down' },
128 },
129}
24131return {
25 font = font,
26 font_size = font_size,
27 color_scheme = color_scheme,
28 color_schemes = color_schemes,
29 default_prog = { 'nu' },
30 window_decorations = window_decorations,
31 enable_tab_bar = true,
32 hide_tab_bar_if_only_one_tab = true,
33 check_for_updates = false,
34 show_update_window = false,
35 audible_bell = 'Disabled',
36 visual_bell = {
37 fade_in_duration_ms = 75,
38 fade_out_duration_ms = 75,
39 target = 'CursorColor',
40 },
41 tab_max_width = 24,
42 enable_wayland = enable_wayland,
43 window_padding = {
44 left = 12,
45 right = 8,
46 top = 12,
47 bottom = 8,
48 },
132 font = font,
133 font_size = font_size,
134 color_scheme = color_scheme,
135 color_schemes = color_schemes,
136 default_prog = { 'nu' },
137 window_decorations = window_decorations,
138 enable_tab_bar = true,
139 -- if this is hidden, we cannot see the right status area
140 hide_tab_bar_if_only_one_tab = false,
141 check_for_updates = false,
142 show_update_window = false,
143 audible_bell = 'Disabled',
144 visual_bell = {
145 fade_in_duration_ms = 75,
146 fade_out_duration_ms = 75,
147 target = 'CursorColor',
148 },
149 tab_max_width = 24,
150 enable_wayland = enable_wayland,
151 window_padding = {
152 left = 12,
153 right = 8,
154 top = 12,
155 bottom = 8,
156 },
157 disable_default_key_bindings = true,
158 leader = leader,
159 keys = keys,
160 key_tables = key_tables,