repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

wezterm: faster key binds

5f1fd02dbfefc4511c694ddccea131a4f2c95fe8

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (9)

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
9 9 "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
10 10 "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
11 11 "colorizer.nvim": { "branch": "master", "commit": "107719885290366c893e1c1c58b7474cbeabfef6" },
12 - "conform.nvim": { "branch": "master", "commit": "9b26e81c4292106e68dda3e7b64473434fd5b3e0" },
13 - "diffview.nvim": { "branch": "main", "commit": "72c6983f422689f310b379a04fd555799b0d7cfc" },
14 - "dressing.nvim": { "branch": "master", "commit": "572314728cb1ce012e825fd66331f52c94acac12" },
12 + "conform.nvim": { "branch": "master", "commit": "f3b930db4964d60e255c8f9e37b7f2218dfc08cb" },
13 + "diffview.nvim": { "branch": "main", "commit": "3afa6a053f680e9f1329c4a151db988a482306cd" },
14 + "dressing.nvim": { "branch": "master", "commit": "3c38ac861e1b8d4077ff46a779cde17330b29f3a" },
15 15 "fidget.nvim": { "branch": "main", "commit": "ef99df04a1c53a453602421bc0f756997edc8289" },
16 16 "flash.nvim": { "branch": "main", "commit": "7bb4a9c75d1e20cd24185afedeaa11681829ba23" },
17 17 "gitsigns.nvim": { "branch": "main", "commit": "76927d14d3fbd4ba06ccb5246e79d93b5442c188" },
18 18 "glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" },
19 19 "heirline.nvim": { "branch": "master", "commit": "0d797435e54645a5f98bad7ad6046aac1ef95c1e" },
20 20 "indent-blankline.nvim": { "branch": "master", "commit": "d98f537c3492e87b6dc6c2e3f66ac517528f406f" },
21 - "lazy.nvim": { "branch": "main", "commit": "8f19915175395680808de529e4220da8dafc0759" },
21 + "lazy.nvim": { "branch": "main", "commit": "24fa2a97085ca8a7220b5b078916f81e316036fd" },
22 22 "lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
23 - "mini.bracketed": { "branch": "main", "commit": "65c7dfb51e832de9e279e5d5b0741e7af6755ab5" },
24 - "mini.bufremove": { "branch": "main", "commit": "931a3bb514147d9e812767275c4beba6b779b1d3" },
23 + "mini.bracketed": { "branch": "main", "commit": "06ad08fc75dc540cba76d3d8de0f2dc9f75b5812" },
24 + "mini.bufremove": { "branch": "main", "commit": "e6044aa28e61d4dd9ec86194d6f81743eced0c1c" },
25 25 "mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
26 26 "neodev.nvim": { "branch": "main", "commit": "ce9a2e8eaba5649b553529c5498acb43a6c317cd" },
27 27 "neogen": { "branch": "main", "commit": "6de0add4805165317ab7d3d36b5cef48b1b865f3" },
32 32 "nvim-genghis": { "branch": "main", "commit": "7ed82d0d0513946bbc678f326e5750c79a942351" },
33 33 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
34 34 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
35 - "nvim-lint": { "branch": "master", "commit": "4f354839581be5f4ec229869c82106826b39807d" },
35 + "nvim-lint": { "branch": "master", "commit": "e19842a05aae484957ad20710444757bc0a61d63" },
36 36 "nvim-lsp-file-operations": { "branch": "master", "commit": "223aca86b737dc66e9c51ebcda8788a8d9cc6cf2" },
37 37 "nvim-navbuddy": { "branch": "master", "commit": "f22bac988f2dd073601d75ba39ea5636ab6e38cb" },
38 38 "nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
39 - "nvim-neoclip.lua": { "branch": "main", "commit": "798cd0592a81c185465db3a091a0ff8a21af60fd" },
40 - "nvim-spectre": { "branch": "master", "commit": "5690ea46baf08bbc1623980012e14b6239ce582e" },
41 - "nvim-surround": { "branch": "main", "commit": "79aaa42da1f698ed31bcbe7f83081f69dca7ba17" },
39 + "nvim-neoclip.lua": { "branch": "main", "commit": "9b02a625dfa22499089458554be86171a1dfe8b1" },
40 + "nvim-spectre": { "branch": "master", "commit": "366f46fdd4a1593cc237aea13d5ef113739a472c" },
41 + "nvim-surround": { "branch": "main", "commit": "fa5b365e847909df35cea184e13b7b811f346cda" },
42 42 "nvim-tree.lua": { "branch": "master", "commit": "2bc725a3ebc23f0172fb0ab4d1134b81bcc13812" },
43 - "nvim-treesitter": { "branch": "master", "commit": "30de5e7e9486fb1b1b8c2a1e71052b13f94f1cb0" },
43 + "nvim-treesitter": { "branch": "master", "commit": "5c924407cf110e9da4f3ba02ffed127b4198ad89" },
44 44 "nvim-treesitter-context": { "branch": "master", "commit": "f62bfe19e0fbc13ae95649dfb3cf22f4ff85b683" },
45 45 "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
46 46 "nvim-treesitter-textobjects": { "branch": "master", "commit": "3557e41418b4a6c5b85d5d64abe94c9c50fa9b14" },
47 - "nvim-ts-autotag": { "branch": "main", "commit": "8ae54b90e36ef1fc5267214b30c2cbff71525fe4" },
47 + "nvim-ts-autotag": { "branch": "main", "commit": "bcf3146864262ef2d3c877beba3e222b5c73780d" },
48 48 "nvim-ts-context-commentstring": { "branch": "main", "commit": "cb064386e667def1d241317deed9fd1b38f0dc2e" },
49 - "nvim-web-devicons": { "branch": "master", "commit": "e37bb1feee9e7320c76050a55443fa843b4b6f83" },
49 + "nvim-web-devicons": { "branch": "master", "commit": "b77921fdc44833c994fdb389d658ccbce5490c16" },
50 50 "nvim-window": { "branch": "main", "commit": "81f29840ac3aaeea6fc2153edfabebd00d692476" },
51 51 "oil.nvim": { "branch": "master", "commit": "2cb39e838e9dcd8b374f09a3a87a2e5ec9d372f6" },
52 52 "pair-ls.nvim": { "branch": "master", "commit": "ccf3280d8cafec48e4947dd827abbc456435dfad" },
53 53 "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
54 54 "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
55 55 "qf_helper.nvim": { "branch": "master", "commit": "fa3c2f3f2706e2c9984409c9c14b5993302ddfa7" },
56 - "schemastore.nvim": { "branch": "main", "commit": "9a5992a881583d886bfbb46631a09f736f0fae50" },
56 + "schemastore.nvim": { "branch": "main", "commit": "931f9f3b7b60ec976159cb01b4a40da3829ac2fd" },
57 57 "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
58 58 "speedtyper.nvim": { "branch": "main", "commit": "2d158eed4c753995b0501a3a7a72464fbb213e3d" },
59 59 "ssr.nvim": { "branch": "main", "commit": "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },
60 - "substitute.nvim": { "branch": "main", "commit": "17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
60 + "substitute.nvim": { "branch": "main", "commit": "8b93e792747520b6490237b5b32963e256fbde24" },
61 61 "suda.vim": { "branch": "master", "commit": "b97fab52f9cdeabe2bbb5eb98d82356899f30829" },
62 62 "telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
63 63 "telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" },
66 66 "text-case.nvim": { "branch": "main", "commit": "d62c63a4e9a996c7321885937ab89920fca2c1c8" },
67 67 "tint.nvim": { "branch": "master", "commit": "02bd0527a315a80e4e25bb2dd7b6994fb0daae01" },
68 68 "todo-comments.nvim": { "branch": "main", "commit": "a7e39ae9e74f2c8c6dc4eea6d40c3971ae84752d" },
69 - "tree-sitter-nu": { "branch": "main", "commit": "a58513279e98dc3ff9ed149e3b4310cbb7e11068" },
70 - "treesj": { "branch": "main", "commit": "e1e82ab4237619d342c7102c9f13d4b9833bfd39" },
69 + "tree-sitter-nu": { "branch": "main", "commit": "fae35745e32c015dc342136802f63b8456ccec7f" },
70 + "treesj": { "branch": "main", "commit": "f98deb33805485b56a8d44d1a27d16874af00d7f" },
71 71 "twilight.nvim": { "branch": "main", "commit": "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" },
72 72 "venn.nvim": { "branch": "main", "commit": "b09c2f36ddf70b498281845109bedcf08a7e0de0" },
73 73 "vim-startuptime": { "branch": "master", "commit": "ac2cccb5be617672add1f4f3c0a55ce99ba34e01" },
75 75 "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
76 76 "which-key.nvim": { "branch": "main", "commit": "ce741eb559c924d72e3a67d2189ad3771a231414" },
77 77 "zen-mode.nvim": { "branch": "main", "commit": "78557d972b4bfbb7488e17b5703d25164ae64e6a" }
78 -}

neovim/lua/bugabinga/nugu/init.lua

Modified
306 306 _['@tag'] = _.Tag
308 308 _['@markup.raw.block'] = _.PreProc
309 +_['@markup.raw.block.vimdoc'] = _.Normal
310 311 _['@lsp.type.namespace'] = _['@namespace']
311 312 _['@lsp.type.type'] = _['@type']

neovim/puck.lua

Modified
14 14 -- TODO export some kind of structure
15 15 local dev = 'plugin_under_development'
16 16 local gh = 'plugin_from_github'
17 +local srht = 'plugin_from_srht'
18 +local cb = 'plugin_from_codeberg'
17 19 local gh_format = 'https://github.com/%s/archive/%s.tar.gz'
20 +local cb_format = 'https://codeberg.org/%s/archive/%s.tar.gz'
21 +local srht_format = 'https://git.sr.ht/%s/archive/%s.tar.gz'
19 -local as_name = function(plugin_coords)
20 - return (plugin_coords):gsub('(%w+)%.?%w*', '%1')
23 +local plugins = {}
25 +local as_name = function ( plugin_coords )
26 + return vim.fs.basename(plugin_coords):gsub( '(%w+)%.?%w*', '%1' )
23 -local download_plugin_into = function(plugin_tarball_url, plugin_install_path)
24 - --TODO
29 +local download_plugin_into = function ( plugin_tarball_url, plugin_install_path )
31 + assert(vim.fn.executable 'curl', 'curl not found')
32 + assert(vim.fn.executable 'tar', 'tar not found')
34 + vim.fn.mkdir( plugin_install_path, 'p' )
36 + local tarball_data_stream = vim.uv.new_pipe(true)
37 + local error_stream = vim.uv.new_pipe()
39 + vim.uv.read_start(error_stream, function(err, data)
40 + assert(not err, err)
41 + if data then vim.notify(data, vim.log.levels.ERROR) end
42 + end)
44 + local curl_handle, curl_pid = vim.uv.spawn( 'curl',
45 + {
46 + args = { '--silent', '--location', plugin_tarball_url },
47 + cwd = plugin_install_path,
48 + stdio = {nil, tarball_data_stream, error_stream},
49 + hide = true,
50 + },
51 + function(code, signal)
52 + vim.print('curl done', code, signal)
53 + end )
54 + local tar_handle, tar_pid = vim.uv.spawn( 'tar',
55 + {
56 + args = { '--extract','--gzip', '--file', '-' },
57 + cwd = plugin_install_path,
58 + stdio = { tarball_data_stream, nil, error_stream},
59 + hide = true,
60 + },
61 + function(code, signal)
62 + vim.print('tar done', code, signal)
63 + end )
65 + print(curl_handle, curl_handle, tar_handle, tar_pid)
67 + vim.uv.shutdown(tarball_data_stream, function()
68 + vim.uv.close(curl_handle, function()
69 + vim.print("curl closed")
70 + end)
71 + vim.uv.close(tar_handle, function()
72 + vim.print("tar closed")
73 + end)
74 + end)
28 -local delete_directory_recursive = function(path)
29 - local stat = vim.uv.fs_stat(path)
30 - if stat and stat.type == "directory" then
31 - local dir = vim.uv.fs_scandir(path)
32 - if dir then
33 - while true do
34 - local name, type = vim.uv.fs_scandir_next(dir)
35 - if not name then
36 - break
37 - end
39 - local full_path = vim.fs.joinpath(path, name)
40 - if type == "directory" then
41 - return delete_directory_recursive(full_path)
42 - else
43 - return vim.uv.fs_unlink(full_path)
44 - end
45 - end
77 +local delete_directory_recursive = function ( path )
78 + local stat = vim.uv.fs_stat( path )
79 + if stat and stat.type == 'directory' then
80 + local dir = vim.uv.fs_scandir( path )
81 + if dir then
82 + while true do
83 + local name, type = vim.uv.fs_scandir_next( dir )
84 + if not name then
85 + break
47 - return vim.uv.fs_rmdir(path)
48 - else
49 - return false
88 + local full_path = vim.fs.joinpath( path, name )
89 + if type == 'directory' then
90 + return delete_directory_recursive( full_path )
91 + else
92 + return vim.uv.fs_unlink( full_path )
93 + end
94 + end
96 + return vim.uv.fs_rmdir( path )
97 + else
98 + return false
99 + end
52 - return true
101 + return true
55 -local install_plugin = function(puck_root, plugin_type, plugin_coords, plugin_rev)
56 - local plugin_name = as_name(plugin_coords)
57 - local plugin_install_path = vim.fs.normalize(vim.fs.joinpath(puck_root, plugin_name))
58 - local plugin_install_path_stat = vim.uv.fs_stat(plugin_install_path)
59 - local plugin_already_exists = plugin_install_path_stat and plugin_install_path_stat.type == 'directory'
61 - local plugin_install_rev_path = vim.fs.normalize(puck_root, plugin_name .. '.rev')
63 - -- either do nothing or update/fresh install
64 - if(vim.uv.fs_access(plugin_install_rev_path,'R') then
65 - local current_rev = io:open(plugin_install_rev_path, 'r'):read()
66 - if current_rev == plugin_rev then return end
67 - end
68 - -- rev is different, must be update (we don`t care if up or down) or fresh install
69 - local removed = delete_directory_recursive(plugin_install_path)
70 - local plugin_tarball_url = gh_format:format(plugin_coords, plugin_rev)
71 - local ok = xpcall(download_plugin_into,plugin_tarball_url, plugin_install_path)
72 - if ok then
73 - io.open(plugin_install_rev_path, 'w+'):write(plugin_rev)
74 - if removed then
75 - vim.notify('Plugin ' .. plugin_coords .. '@' .. plugin_rev .. ' updated!', vim.log.levels.INFO)
76 - else
77 - vim.notify('Plugin ' .. plugin_coords .. '@' .. plugin_rev .. ' installed!', vim.log.levels.INFO)
78 - end
80 - else
81 - vim.notify('Failed to download tarball for plugin ' .. plugin_coords .. '@' .. plugin_rev ..'!', vim.log.levels.ERROR)
82 - end
104 +local as_url_format = function(plugin_type)
105 + assert(plugin_type ~= dev, 'local plugins need not have an url format!')
106 + if plugin_type == gh then return gh_format end
107 + if plugin_type == cb then return cb_format end
108 + if plugin_type == srht then return srht_format end
110 + error('unknown plugin type '..plugin_type..' given.')
86 -local delete_unused_plugins = function(puck_root) end
113 +local install_plugin = function ( puck_root, plugin_type, plugin_coords, plugin_rev )
114 + local plugin_name = as_name( plugin_coords )
115 + local plugin_install_path = vim.fs.normalize( vim.fs.joinpath( puck_root, plugin_name ) ) --TODO unused?
116 + local plugin_install_path_stat = vim.uv.fs_stat( plugin_install_path )
117 + local plugin_already_exists = plugin_install_path_stat and plugin_install_path_stat.type == 'directory'
88 -local register_local_plugin = function(plugin_coords)
89 - local plugin_path = vim.fs.normalize(plugin_coords)
90 - local plugin_path_stat = vim.uv.fs_stat(plugin_path)
119 + local plugin_install_rev_path = vim.fs.normalize( vim.fs.joinpath(puck_root, plugin_name .. '.rev' ))
92 - if( plugin_path_stat and plugin_path_stat.type == 'directory') then
93 - vim.opt.runtimepath:prepend(plugin_path)
94 - else
95 - vim.notify('Failed to load local plugin ' .. plugin_path .. '!',vim.log.levels.ERROR)
96 - end
121 + -- either do nothing or update/fresh install
122 + if (vim.uv.fs_access( plugin_install_rev_path, 'R' )) then
123 + local plugin_install_rev_file = io.open( plugin_install_rev_path, 'r' )
124 + if not plugin_install_rev_file then vim.notify('Unable to read rev file ' .. plugin_install_rev_path, vim.log.levels.ERROR) end
125 + local current_rev = plugin_install_rev_file:read()
126 + plugin_install_rev_file:close()
127 + if current_rev == plugin_rev then return end
128 + end
129 + -- rev is different, must be update (we don`t care if up or down) or fresh install
130 + local removed = delete_directory_recursive( plugin_install_path )
131 + local url_format = as_url_format(plugin_type)
132 + local plugin_tarball_url = url_format:format( plugin_coords, plugin_rev )
133 + local ok = pcall( download_plugin_into, plugin_tarball_url, puck_root )
134 + if ok then
135 + local mode = vim.uv.fs_access(plugin_install_rev_path, 'W') and 'w+' or 'w'
136 + local plugin_install_rev_file = io.open( plugin_install_rev_path, mode)
137 + if not plugin_install_rev_file then vim.notify('Unable to write rev file ' .. plugin_install_rev_path, vim.log.levels.ERROR) end
138 + plugin_install_rev_file:write( plugin_rev )
139 + plugin_install_rev_file:close()
140 + if removed then
141 + vim.notify( 'Plugin ' .. plugin_coords .. '@' .. plugin_rev .. ' updated!', vim.log.levels.INFO )
142 + else
143 + vim.notify( 'Plugin ' .. plugin_coords .. '@' .. plugin_rev .. ' installed!', vim.log.levels.INFO )
144 + end
145 + else
146 + vim.notify( 'Failed to download tarball for plugin ' .. plugin_coords .. '@' .. plugin_rev .. '!',
147 + vim.log.levels.ERROR )
148 + end
99 -local load_local_plugin = function(plugin_coords)
100 - local plugin_name = as_name(plugin_coords)
101 - local plugin_init = {}
102 - vim.tbl_extend('keep',plugin_init, vim.api.nvim_get_runtime_file('plugin/' .. plugin_name .. '.vim', false ))
103 - vim.tbl_extend('keep',plugin_init, vim.api.nvim_get_runtime_file('plugin/' .. plugin_name .. '.lua', false ))
104 - for _, init in pairs(plugin_init) do
105 - vim.cmd.source(init)
106 - end
151 +local delete_unused_plugins = function ( puck_root ) end
153 +local register_local_plugin = function ( workspace, plugin_coords )
154 + local plugin_path = vim.fs.normalize( vim.fs.joinpath(workspace, vim.fs.basename(plugin_coords) ) )
155 + local plugin_path_stat = vim.uv.fs_stat( plugin_path )
157 + if (plugin_path_stat and plugin_path_stat.type == 'directory') then
158 + vim.opt.runtimepath:prepend( plugin_path )
159 + else
160 + vim.notify( 'Failed to load local plugin ' .. plugin_path .. '!', vim.log.levels.ERROR )
161 + end
109 -local load_registered_plugin = function(plugin_name)
110 - -- TODO
164 +local load_local_plugin = function ( plugin_coords )
165 + local plugin_name = as_name( plugin_coords )
166 + local plugin_init = {}
167 + vim.tbl_extend( 'keep', plugin_init, vim.api.nvim_get_runtime_file( 'plugin/' .. plugin_name .. '.vim', false ) )
168 + vim.tbl_extend( 'keep', plugin_init, vim.api.nvim_get_runtime_file( 'plugin/' .. plugin_name .. '.lua', false ) )
169 + for _, init in pairs( plugin_init ) do
170 + vim.cmd.source( init )
171 + end
113 -local setup = function(options)
114 - options = options or {}
115 - options.plugins = options.plugins or {}
116 - -- take control of loading plugins.
117 - -- that means we have to take care of builtin plugins later
118 - vim.opt.loadplugins = false
174 +local load_registered_plugin = function ( plugin_name )
175 + -- TODO
176 +end
120 - local puck_root = vim.fs.normalize(vim.fn.stdpath 'data' .. '/site/pack/puck')
121 - vim.fn.mkdir(puck_root, 'p')
178 +local setup = function ( options )
179 + options = options or {}
180 + vim.validate { ['options.workspace'] = { options.workspace, 'string'}}
123 - for _, plugin in pairs(plugins) do
124 - local plugin_type = plugin[1]
125 - local plugin_coords = plugin[2]
126 - local plugin_rev = plugin[3]
127 - if plugin_type == dev then
128 - register_local_plugin(plugin_coords)
129 - else
130 - install_plugin(puck_root, plugin_type, plugin_coords, plugin_rev)
131 - end
132 - end
182 + options.plugins = options.plugins or {}
183 + plugins = options.plugins
184 + -- take control of loading plugins.
185 + -- that means we have to take care of builtin plugins later
186 + vim.opt.loadplugins = false
134 - delete_unused_plugins(puck_root)
188 + local puck_root = vim.fs.normalize( vim.fn.stdpath 'data' .. '/site/pack/puck' )
189 + vim.fn.mkdir( puck_root, 'p' )
136 - -- manually load builtin plugins, that we disabled earlier
137 - -- loads only a subset of builtins, that i find useful.
138 - load_local_plugin 'plugin/shada.vim'
139 - load_local_plugin 'plugin/tutor.vim'
140 - load_local_plugin 'plugin/spellfile.vim'
141 - load_local_plugin 'plugin/osc52.lua'
142 - -- can this be useful on win32?
143 - -- load_local_plugin 'plugin/man.lua'
144 - load_local_plugin 'plugin/editorconfig.lua'
191 + for _, plugin in pairs( plugins ) do
192 + local plugin_type = plugin[1]
193 + local plugin_coords = plugin[2]
194 + local plugin_rev = plugin[3]
195 + if plugin_type == dev then
196 + register_local_plugin(options.workspace, plugin_coords )
197 + else
198 + install_plugin( puck_root, plugin_type, plugin_coords, plugin_rev )
199 + end
200 + end
202 + delete_unused_plugins( puck_root )
204 + -- manually load builtin plugins, that we disabled earlier
205 + -- loads only a subset of builtins, that i find useful.
206 + load_local_plugin 'plugin/shada.vim'
207 + load_local_plugin 'plugin/tutor.vim'
208 + load_local_plugin 'plugin/spellfile.vim'
209 + load_local_plugin 'plugin/osc52.lua'
210 + -- can this be useful on win32?
211 + -- load_local_plugin 'plugin/man.lua'
212 + load_local_plugin 'plugin/editorconfig.lua'
147 215 -- TODO move this outside
148 216 -- testing the puck
149 217 local plugins = {
150 - { dev , '~\\Workspaces\\venn.nvim' },
151 - { gh, 'nyoom-engineering/oxocarbon.nvim', 'c5846d10cbe4131cc5e32c6d00beaf59cb60f6a2' },
218 + { dev, 'bugabinga/venn.nvim', },
219 + { gh, 'nyoom-engineering/oxocarbon.nvim', 'c5846d10cbe4131cc5e32c6d00beaf59cb60f6a2', },
220 + { srht, '~adigitoleo/haunt.nvim', 'e3e3c8f45663fed8225ba5efb0af00a2df14a736', },
221 + { cb, 'jthvai/lavender.nvim', 'a5187e6f4afe4b1f2fbcd0fe0bad34c40002ba48', },
222 + { dev, 'bugabinga/auto-dark-mode.nvim', nil, },
153 -setup { plugins = plugins }
154 -load_registered_plugin'oxocarbon'
155 -vim.cmd.colorscheme'oxocarbon'
224 +setup { plugins = plugins, workspace = '~/Workspace'} -- TODO change Workspace on win32
225 +load_registered_plugin 'oxocarbon'
226 +vim.cmd.colorscheme 'oxocarbon'
157 228 return {
158 - load = load_registered_plugin,
159 - setup = setup,
229 + load = load_registered_plugin,
230 + setup = setup,

nushell/gen-aliases.nu

Added
new file mode 100644
1 +#!/usr/bin/env nu
3 +let file = $"($nu.default-config-dir)/aliases.nu"
5 +def save-alias [...args: string] {
6 + $"alias ($args | str join ' ')\n" | save -a $file
7 +}
9 +'' | save -f $file
11 +########################################
12 +# Start defining your aliases here
14 +if not (which bat | is-empty) {
15 + save-alias cat = bat
18 +if not (which bsdtar | is-empty) {
19 + save-alias tar = bsdtar

wezterm/bugabinga/key_binds.lua

Modified
20 20 { key = 'Escape', action = 'PopKeyTable' },
22 22 [font_size_mode] = {
23 - { key = '+', mods = 'SHIFT', action = wez.action.IncreaseFontSize },
23 + { key = '+', action = wez.action.IncreaseFontSize },
24 24 { key = '-', action = wez.action.DecreaseFontSize },
25 25 { key = '=', action = wez.action.ResetFontSize },
35 35 { key = 'v', action = wez.action.SplitHorizontal { domain = 'CurrentPaneDomain' }, },
36 36 { key = 's', action = wez.action.SplitVertical { domain = 'CurrentPaneDomain' }, },
38 - { key = 'r', action = wez.action.ActivateKeyTable { name = resize_pane_mode, one_shot = false } },
38 + { key = '=', action = wez.action.ActivateKeyTable { name = resize_pane_mode, one_shot = false } },
40 - { key = 'q', action = wez.action.CloseCurrentPane { confirm = true } },
40 + { key = 'q', action = wez.action.CloseCurrentPane { confirm = false } },
42 42 { key = 'Escape', action = 'PopKeyTable' },
138 138 action = wez.action.ActivateCommandPalette,
141 - key = 'p',
142 - mods = 'LEADER|SHIFT',
141 + key = 'c',
142 + mods = 'LEADER',
143 + action = wez.action.SwitchToWorkspace { name = 'code' },
144 + },
146 + key = 'k',
147 + mods = 'LEADER',
148 + action = wez.action.SwitchToWorkspace { name = 'dorkfiles editing' },
149 + },
151 + key = 'd',
152 + mods = 'LEADER',
153 + action = wez.action.SwitchToWorkspace { name = 'default' },
154 + },
156 + key = 'r',
157 + mods = 'LEADER',
143 158 action = wez.action.ShowLauncherArgs {
144 159 flags = 'FUZZY|WORKSPACES',

wezterm/bugabinga/workspaces.lua

Modified
67 67 -- e.g. /run/user/1000/wezterm/log
68 68 wez.on('mux-startup', function()
69 69 setup_workspaces()
70 - maximize_window()
71 70 end)

wezterm/nerdfonts

Modified
1 -IBM 3270
1 +Bitstream Vera Sans Mono
2 +# Terminus
2 3 Anonymous Pro
3 4 Aurulent Sans Mono
4 -BigBlueTerminalPlus
5 -Bitstream Vera Sans Mono
6 -IBM Plex Mono
5 +# BigBlueTerminalPlus
7 6 Cascadia Code
8 7 Cousine
9 8 D2Coding
11 10 Droid Sans Mono
12 11 Envy Code R
13 12 Fantasque Sans Mono
14 -FiraCode
13 +# FiraCode
15 14 GeistMono
16 15 Hack
17 16 Hasklig
18 17 Hermit
19 -iA Writer Mono V
20 -Inconsolata
18 +IBM 3270
19 +IBM Plex Mono
20 +# Inconsolata
21 21 Intel One Mono
22 22 JetBrainsMono
23 23 Lekton
24 -Liberation Mono
24 +# Liberation Mono
25 25 Lilex
26 26 MartianMono
27 27 Monaspace Argon Var
35 35 RobotoMono
36 36 Share Tech Mono
37 37 Source Code Pro
38 -Terminus
39 38 VictorMono
39 +iA Writer Mono V

wezterm/wezterm.lua

Modified
1 1 local wez = require 'wezterm'
2 2 local nugu = require 'bugabinga.nugu'
4 +local win32 = wez.target_triple:find 'windows'
4 5 local key_binds = require 'bugabinga.key_binds'
5 6 local auto_dark_mode = require 'bugabinga.auto_dark_mode'
6 7 local workspaces = require 'bugabinga.workspaces'
25 26 local nerdfonts = io.open(wez.config_dir .. '/nerdfonts', 'r')
26 27 if nerdfonts then
27 28 for font_name in nerdfonts:lines() do
28 - table.insert(font_names, font_name)
29 + if not font_name:match '^#.*' then
30 + table.insert(font_names, font_name)
31 + end
30 33 local random_font = font_names[math.random(#font_names)]
31 34 font = wez.font(random_font)
99 102 default_prog = { 'nu', '--login' },
100 103 default_cursor_style = 'SteadyBlock',
102 - exec_domains = exec_domains,
105 + exec_domains = not win32 and exec_domains or {},
103 106 unix_domains = { { name = 'mux' } },
104 107 default_gui_startup_args = { 'connect', 'mux' },