repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

d4fde2a12c211cf6e35dc36f2fa531127caaa20c

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

unsigned

Browse filesCompare with HEAD

Changed files (18)

+57 / −468 text lines

Diff layout

git/gitconfig.linux

Modified

+0 / −9 text lines

44 smtpencryption = tls
55 smtpserverport = 587
66 annotate = yes
7
8[credential "https://github.com"]
9 helper =
10 helper = !/usr/bin/gh auth git-credential
12[credential "https://gist.github.com"]
13 helper =
14 helper = !/usr/bin/gh auth git-credential

helix/config.toml

Modified

+12 / −20 text lines

1theme = "nugu-light"
1theme = "nugu-dark"
33[editor]
44shell = ["nu", "--commands"]
88line-number = "relative"
99rulers = [81, 121, 141]
11auto-completion = false
11auto-completion = true
1212completion-trigger-len = 3
1313auto-info = true
1414auto-pairs = false
8181enable = true
8383[keys.normal]
84ret = ["add_newline_below", "move_line_down"]
85A-ret = ["add_newline_above", "move_line_up"]
8784# move current line up
88A-up = [
89 "extend_to_line_bounds",
90 "delete_selection",
91 "move_line_up",
92 "paste_before",
93]
94A-k = [
95 "extend_to_line_bounds",
96 "delete_selection",
97 "move_line_up",
98 "paste_before",
99]
85A-k = [ "extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before", ]
10186# move current line down
102A-down = ["extend_to_line_bounds", "delete_selection", "paste_after"]
10387A-j = ["extend_to_line_bounds", "delete_selection", "paste_after"]
88"A-=" = ":format"
10590[keys.insert]
106"C-space" = "completion"
91up = "no_op"
92down = "no_op"
93left = "no_op"
94right = "no_op"
95pageup = "no_op"
96pagedown = "no_op"
97home = "no_op"
98end = "no_op"

helix/languages.toml

Modified

+7 / −11 text lines

11[[language]]
22name = "nasm"
3language-servers = [{ name = "asm-lsp" }, { name = "bufferls" }]
3auto-format = true
4language-servers = [{ name = "asm-lsp" }]
56[[language]]
67name = "xml"
7language-servers = [{ name = "lemminx" }, { name = "bufferls" }]
8auto-format = false
9language-servers = [{ name = "lemminx" }]
911[[language]]
10name = "toml"
11language-servers = [{ name = "taplo" }, { name = "bufferls" }]
13[language-server.bufferls]
14command = "buffer-language-server"
12name = "java"
13auto-format = false
14language-servers = [{ name = "jdtls" }]
1616[language-server.asm-lsp]
1717command = "asm-lsp"
1919[language-server.lemminx]
2020command = "lemminx"
22[language-server.taplo]
23command = "taplo"
24args = ["lsp", "stdio"]

neovim/.lsp.settings.lua

Modified

+3 / −0 text lines

33 Lua = {
44 diagnostics = { globals = { 'vim', 'prequire', }, },
55 runtime = { version = 'LuaJIT', },
6 workspace = {
7 library = vim.api.nvim_get_runtime_file("",true),
8 },
69 },
710 },
811}

neovim/coco.lua

Deleted
deleted file mode 100644

+0 / −132 text lines

1local vim = _G['vim'] or error 'where is my vim'
2local co = coroutine
3
4local function current_non_main_co()
5 local data = { coroutine.running(), }
6
7 if select( '#', unpack( data ) ) == 2 then
8 local co, is_main = unpack( data )
9 if is_main then
10 return nil
11 end
12 return co
13 end
15 return unpack( data )
16end
18local function wrap( func, argc, opts )
19 opts = vim.tbl_extend( 'keep', opts or {}, { strict = true, } )
20 vim.validate { func = { func, 'function', }, argc = { argc, 'number', }, }
21 local protected = function ( ... )
22 local args = { ..., }
23 local cb = args[argc]
24 args[argc] = function ( ... )
25 cb( true, ... )
26 end
27 xpcall( func, function ( err )
28 cb( false, err, debug.traceback() )
29 end, unpack( args, 1, argc ) )
30 end
32 return function ( ... )
33 if not current_non_main_co() then
34 if opts.strict then
35 error 'Cannot call async function from non-async context'
36 end
37 return func( ... )
38 end
40 local ret = { coroutine.yield( argc, protected, ... ), }
41 local success = ret[1]
42 if not success then
43 error( ('Wrapped function failed: %s\n%s'):format( ret[2], ret[3] ) )
44 end
45 return unpack( ret, 2, table.maxn( ret ) )
46 end
47end
49local dbg = function ( fmt, ... )
50 vim.print( string.format( fmt, ... ) )
51end
53local load_version = function ( prg, callback )
54 vim.validate {
55 prg = { prg, 'string', },
56 callback = { callback, 'function', },
57 }
59 return co.create( function ()
60 local current_thread = co.running()
61 local stdin = nil;
62 local stdout = vim.uv.new_pipe();
63 local stderr = vim.uv.new_pipe();
64 local process_result = {}
65 local process_error = {}
66 local handle, pid = vim.uv.spawn( prg, {
67 stdio = { stdin, stdout, stderr, },
68 args = { '--version', },
69 hide = true,
70 }, function ( code, signal )
71 dbg( 'process done with code: %d, signal: %s', code, signal )
72 callback( process_error, process_result, code, signal )
73 co.resume( current_thread )
74 end )
75 if not handle then
76 error( string.format( 'program %s could not be spawned', prg ) )
77 end
79 -- dbg( 'process open with handle: %s and pid %d', handle, pid )
81 vim.uv.read_start( stdout, function ( err, data )
82 if err then
83 dbg( err )
84 elseif data then
85 -- dbg( 'chunk of stdout: %s', data )
86 table.insert( process_result, data )
87 else
88 -- dbg 'stdout done'
89 end
90 end )
92 vim.uv.read_start( stderr, function ( err, data )
93 if err then
94 dbg( err )
95 elseif data then
96 -- dbg( 'chunk of stderr: %s', data )
97 table.insert( process_error, data )
98 else
99 -- dbg 'stderr done'
100 end
101 end )
103 co.yield()
104 end )
105end
109local java = load_version( 'java', function ( err, result, code, signal )
110 if #err ~= 0 then
111 dbg( 'err: %s, code: %s, signal: %s', table.concat( err ), code, signal )
112 else
113 dbg( 'java version is: %s', table.concat( result ) )
114 end
115end )
117local cargo = load_version( 'cargo', function ( err, result )
118 dbg( 'cargo version is: %s', table.concat( result ) )
119end )
121local nvim = load_version( 'nvim', function ( err, result )
122 dbg( 'nvim version is: %s', table.concat( result ) )
123end )
128-- vim.uv.run()
129-- vim.uv.run 'once'
130-- vim.wait( 300, function ()
131-- dbg '---'
132-- end, 300 )

neovim/init2.lua

Deleted
deleted file mode 100644

+0 / −22 text lines

1local puck = require 'puck'
2local gh = puck.plugin_types.github.type
3local cb = puck.plugin_types.codeberg.type
4local srht = puck.plugin_types.sourcehut.type
5local dev = puck.plugin_types.development.type
6
7-- TODO move this outside
8-- testing the puck
9local plugins = {
10 { dev, 'bugabinga/venn.nvim', },
11 { gh, 'nyoom-engineering/oxocarbon.nvim', 'c5846d10cbe4131cc5e32c6d00beaf59cb60f6a2', },
12 { srht, '~adigitoleo/haunt.nvim', 'e3e3c8f45663fed8225ba5efb0af00a2df14a736', },
13 { cb, 'jthvai/lavender.nvim', 'a5187e6f4afe4b1f2fbcd0fe0bad34c40002ba48', },
14 { dev, 'bugabinga/auto-dark-mode.nvim', },
15}
17puck.setup {
18 plugins = plugins,
19 -- TODO change Workspace on win32
20 workspace = '~/Workspace',
21}

neovim/lazy-lock.json

Modified

+10 / −3 text lines

99 "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
1010 "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
1111 "colorizer.nvim": { "branch": "master", "commit": "c1602ff3f11566bb7f16f90985b0c59d3d7db0ef" },
12 "conform.nvim": { "branch": "master", "commit": "0ebe875d9c306f5fc829db38492ffff2a70d8e9d" },
12 "conform.nvim": { "branch": "master", "commit": "936f2413e6c57185cd873623a29a0685bce4b423" },
1313 "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
1414 "dressing.nvim": { "branch": "master", "commit": "c5775a888adbc50652cb370073fcfec963eca93e" },
15 "fidget.nvim": { "branch": "main", "commit": "ef99df04a1c53a453602421bc0f756997edc8289" },
1516 "flash.nvim": { "branch": "main", "commit": "7bb4a9c75d1e20cd24185afedeaa11681829ba23" },
1617 "glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" },
18 "heirline.nvim": { "branch": "master", "commit": "0d797435e54645a5f98bad7ad6046aac1ef95c1e" },
1719 "indent-blankline.nvim": { "branch": "master", "commit": "3fe94b8034dd5241cb882bb73847303b58857ecf" },
1820 "lazy.nvim": { "branch": "main", "commit": "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" },
1921 "lazydev.nvim": { "branch": "main", "commit": "491452cf1ca6f029e90ad0d0368848fac717c6d2" },
3133 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
3234 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
3335 "nvim-lint": { "branch": "master", "commit": "a7ce9c78a7c710c28bee56dfab10a5c0c80b7fb5" },
36 "nvim-lsp-file-operations": { "branch": "master", "commit": "92a673de7ecaa157dd230d0128def10beb56d103" },
3437 "nvim-navbuddy": { "branch": "master", "commit": "f22bac988f2dd073601d75ba39ea5636ab6e38cb" },
3538 "nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
3639 "nvim-neoclip.lua": { "branch": "main", "commit": "32e05f2d23dc5b6a284a688c0535a83d1bfc633f" },
3740 "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
38 "nvim-treesitter": { "branch": "master", "commit": "c436d45eeeeb78e5482cb28b59de1d7a77c93d86" },
41 "nvim-tree.lua": { "branch": "master", "commit": "d41b4ca013ed89e41b9c0ecbdae5f1633e42f7fa" },
42 "nvim-treesitter": { "branch": "master", "commit": "6a3c6a42a6e24414bdf337b05a84a0ea013dd155" },
3943 "nvim-treesitter-context": { "branch": "master", "commit": "e6cc783b74606d97ca9eff6494e3f5c2ca603a50" },
4044 "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
4145 "nvim-treesitter-textobjects": { "branch": "master", "commit": "bf8d2ad35d1d1a687eae6c065c3d524f7ab61b23" },
4347 "nvim-ts-context-commentstring": { "branch": "main", "commit": "375c2d86cee6674afd75b4f727ce3a80065552f7" },
4448 "nvim-web-devicons": { "branch": "master", "commit": "9793801f974bba70e4ac5d7eae6c4f5659993d8e" },
4549 "nvim-window": { "branch": "main", "commit": "81f29840ac3aaeea6fc2153edfabebd00d692476" },
46 "oil.nvim": { "branch": "master", "commit": "1fe476daf0b3c108cb8ee1fc1226cc282fa2c9c1" },
50 "oil.nvim": { "branch": "master", "commit": "1eb9fb35a4613518f79790117ed82c367a0b4a22" },
51 "pair-ls.nvim": { "branch": "master", "commit": "ccf3280d8cafec48e4947dd827abbc456435dfad" },
4752 "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
4853 "plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" },
4954 "qf_helper.nvim": { "branch": "master", "commit": "fa3c2f3f2706e2c9984409c9c14b5993302ddfa7" },
5762 "telescope-zoxide": { "branch": "main", "commit": "54bfe630bad08dc9891ec78c7cf8db38dd725c97" },
5863 "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
5964 "text-case.nvim": { "branch": "main", "commit": "e898cfd46fa6cde0e83abb624a16e67d2ffc6457" },
65 "tint.nvim": { "branch": "master", "commit": "02bd0527a315a80e4e25bb2dd7b6994fb0daae01" },
6066 "todo-comments.nvim": { "branch": "main", "commit": "313b04e5b02d29ab9275c9295ff5e2b73921b0eb" },
6167 "tree-sitter-nu": { "branch": "main", "commit": "0bb9a602d9bc94b66fab96ce51d46a5a227ab76c" },
6268 "treesj": { "branch": "main", "commit": "0d81326b5afd36babe7dd480aabbb0b05f33e688" },
6369 "twilight.nvim": { "branch": "main", "commit": "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" },
6470 "venn.nvim": { "branch": "main", "commit": "b09c2f36ddf70b498281845109bedcf08a7e0de0" },
71 "vim-startuptime": { "branch": "master", "commit": "ac2cccb5be617672add1f4f3c0a55ce99ba34e01" },
6572 "vim-vscode-snippets": { "branch": "master", "commit": "c34e9edee6a00cf3d0b8edb515e08e3df450bcfa" },
6673 "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
6774 "which-key.nvim": { "branch": "main", "commit": "4b7167f8fb2dba3d01980735e3509e172c024c29" },

neovim/lua/bugabinga/lazy.lua

Modified

+5 / −1 text lines

3131 -- version = '*',
3232 -- useful to globally disable plugins
3333 -- cond = function ( plugin_spec )
34 -- return plugin_spec.name:find 'oil'
34 -- return plugin_spec.name:find 'oil'
3535 -- end,
3636 },
3737 install = {
104104 patterns = { 'bugabinga', },
105105 path = win32 and 'W:/' or '~/Workspace',
106106 },
107 profiling = {
108 loader = true,
109 require = true,
110 },
109113local map = require 'std.map'

neovim/lua/bugabinga/lsp/clients/java.lua

Modified

+1 / −11 text lines

1local table = require 'std.table'
21local project = require 'std.project'
32local auto = require 'std.auto'
4local map = require 'std.map'
64local find_jdks = function ()
75 local host = vim.uv.os_gethostname()
6260 referencesCodeLens = { enabled = true, },
6361 references = { includeDecompiledSources = true, },
6462 inlayHints = { parameterNames = { enabled = 'all', }, },
65 format = {
66 enabled = true,
67 -- TODO: set these here with my preferred settings
68 -- set these on a project level -> read intellij /eclipse settings?
69 -- settings = {
70 -- url = 'TODO',
71 -- profile = 'TODO',
72 -- },
73 },
63 format = { enabled = true, },
7666local on_attach = function ()

neovim/lua/bugabinga/lsp/clients/lua.lua

Modified

+4 / −2 text lines

77 root_dir = project.find_lua_project_root,
88 single_file_support = true,
99 workspaces = true,
10 before_init = prequire 'neodev.lsp'.before_init,
1110 settings = {
1211 Lua = {
1312 addonManager = { enable = false, },
1514 hint = { enable = true, setType = true, },
1615 telemetry = { enable = false, },
1716 window = { progressBar = false, statusBar = false, },
18 workspace = { checkThirdParty = false, },
17 workspace = {
18 checkThirdParty = false,
19 library = nil,
20 },
1921 },
2022 },

neovim/lua/bugabinga/lsp/init.lua

Modified

+1 / −1 text lines

7777 ['config.single_file_support'] = { config.single_file_support, 'boolean', true, },
7878 ['config.settings'] = { config.settings, 'table', true, },
7979 ['config.workspaces'] = { config.workspaces, 'boolean', true, },
80 ['config.before_init'] = { config.before_init, {'function','table'}, true, },
80 ['config.before_init'] = { config.before_init, {'function', 'table'}, true, },
8181 ['config.init_options'] = { config.init_options, 'table', true, },
8282 ['config.capabilities'] = { config.capabilities, 'table', true, },
8383 ['config.custom_start'] = { config.custom_start, 'function', true, },

neovim/lua/bugabinga/plugins/cmp.lua

Modified

+0 / −1 text lines

9292 end
9494 local sources = {
95 { name = 'neodev', },
9695 { name = 'nvim_lua', },
9796 { name = 'nvim_lsp', },
9897 { name = 'path', },

neovim/lua/puck.lua

Deleted
deleted file mode 100644

+0 / −246 text lines

1-- [x] Install tarballs into data dir
2-- [x] Put local plugins on runtimepath
3-- Generate helptags ALL
4-- project local plugin settings ?
5-- make this module async --> emit PuckDone event?
6-- Install treesitter parser into data dir
7-- Build parsers and put them where?
8-- vim.validate all input in functions
9--
10-- [x] Cache lua byte code? not necessary anymore thanks to vim.loader
12-- TODO export some kind of structure
13--
14local dev = 'plugin_under_development'
15local gh = 'plugin_from_github'
16local srht = 'plugin_from_srht'
17local cb = 'plugin_from_codeberg'
18local gh_format = 'https://github.com/%s/archive/%s.tar.gz'
19local cb_format = 'https://codeberg.org/%s/archive/%s.tar.gz'
20local srht_format = 'https://git.sr.ht/%s/archive/%s.tar.gz'
22local plugins = {}
24local as_name = function ( plugin_coords )
25 return vim.fs.basename(plugin_coords):gsub( '(%w+)%.?%w*', '%1' )
26end
28local configure_plugin = function( plugin_name )
29 local config = 'config.' .. plugin_name
30 vim.schedule( function()
31 local ok = pcall(require, config)
32 if not ok then
33 vim.notify(string.format('unable to load configuration for %s at %s', plugin_name, config), vim.log.levels.WARN)
34 end
35 end)
36end
38local download_plugin_into = function ( puck_root, plugin_name, plugin_tarball_url, plugin_install_path)
39 vim.validate {
40 puck_root = { puck_root, 'string' },
41 plugin_name = { plugin_name, 'string'},
42 plugin_tarball_url = { plugin_tarball_url, 'string' },
43 plugin_install_path = { plugin_install_path, 'string'},
44 }
46 assert(vim.fn.executable 'curl', 'curl not found')
47 assert(vim.fn.executable 'tar', 'tar not found')
49 -- local tmp_dir = vim.uv.fs_mkdtemp(vim.fs.joinpath(vim.uv.os_tmpdir(),'puck_tmp_install_path_XXXXXX'))
50 -- vim.fn.mkdir( plugin_install_path, 'p' )
52 local tarball_data_stream = vim.uv.new_pipe(true)
54 local curl_handle, curl_pid = vim.uv.spawn( 'curl',
55 {
56 args = { '--silent', '--location', plugin_tarball_url },
57 cwd = puck_root,
58 stdio = {nil, tarball_data_stream, nil},
59 hide = true,
60 },
61 function(code, signal)
62 if code ~= 0 then
63 error('curl', code, signal)
64 end
65 end )
66 local tar_handle, tar_pid = vim.uv.spawn( 'tar',
67 {
68 args = { '--extract','--gzip', '--file', '-' },
69 cwd = puck_root,
70 stdio = { tarball_data_stream, nil, nil},
71 hide = true,
72 },
73 function(code, signal)
74 if code ~= 0 then
75 error('tar done', code, signal)
76 end
78 local contains_name = function(name, path) return name:find(plugin_name,0,true) end
79 local extracted_dir = vim.fs.find( contains_name, { path = puck_root, type = 'directory', limit = 1 })
80 assert(#extracted_dir ~= 0, 'No directory was found in tarball')
81 assert(#extracted_dir == 1, 'Too many directories were found in tarball. Expected one!')
82 -- FIXME: filter out files and folders, that are unnecessary for neovim plugins
83 local ok = vim.uv.fs_rename(extracted_dir[1], plugin_install_path)
84 assert(ok, string.format('Failed to move extracted plugin from %s to %s.', extracted_dir[1], plugin_install_path))
85 configure_plugin(plugin_name)
86 end )
88 vim.uv.shutdown(tarball_data_stream, function()
89 vim.uv.close(curl_handle)
90 vim.uv.close(tar_handle)
91 end)
92end
94local delete_directory_recursive = function ( path )
95 local stat = vim.uv.fs_stat( path )
96 if stat and stat.type == 'directory' then
97 local dir = vim.uv.fs_scandir( path )
98 if dir then
99 while true do
100 local name, type = vim.uv.fs_scandir_next( dir )
101 if not name then
102 break
103 end
105 local full_path = vim.fs.joinpath( path, name )
106 if type == 'directory' then
107 return delete_directory_recursive( full_path )
108 else
109 return vim.uv.fs_unlink( full_path )
110 end
111 end
112 end
113 return vim.uv.fs_rmdir( path )
114 else
115 return false
116 end
118 return true
119end
121local as_url_format = function(plugin_type)
122 assert(plugin_type ~= dev, 'local plugins need not have an url format!')
123 if plugin_type == gh then return gh_format end
124 if plugin_type == cb then return cb_format end
125 if plugin_type == srht then return srht_format end
127 error('unknown plugin type '..plugin_type..' given.')
128end
130local install_plugin = function ( puck_root, plugin_type, plugin_coords, plugin_rev)
131 local plugin_name = as_name( plugin_coords )
132 local plugin_install_path = vim.fs.normalize( vim.fs.joinpath( puck_root, plugin_name ) )
133 local plugin_install_path_stat = vim.uv.fs_stat( plugin_install_path )
134 local plugin_already_exists = plugin_install_path_stat and plugin_install_path_stat.type == 'directory'
136 local plugin_install_rev_path = vim.fs.normalize( vim.fs.joinpath(puck_root, plugin_name .. '.rev' ))
138 -- either do nothing or update/fresh install
139 if (vim.uv.fs_access( plugin_install_rev_path, 'R' )) then
140 local plugin_install_rev_file = io.open( plugin_install_rev_path, 'r' )
141 if not plugin_install_rev_file then vim.notify('Unable to read rev file ' .. plugin_install_rev_path, vim.log.levels.ERROR) end
142 local current_rev = plugin_install_rev_file:read()
143 plugin_install_rev_file:close()
144 if current_rev == plugin_rev then
145 configure_plugin(plugin_name)
146 return
147 end
148 end
149 -- rev is different, must be update (we don`t care if up or down) or fresh install
150 local removed = delete_directory_recursive( plugin_install_path )
151 local url_format = as_url_format(plugin_type)
152 local plugin_tarball_url = url_format:format( plugin_coords, plugin_rev )
153 download_plugin_into(puck_root, plugin_name, plugin_tarball_url, plugin_install_path, callback )
154 local mode = vim.uv.fs_access(plugin_install_rev_path, 'W') and 'w+' or 'w'
155 local plugin_install_rev_file = io.open( plugin_install_rev_path, mode)
156 if not plugin_install_rev_file then vim.notify('Unable to write rev file ' .. plugin_install_rev_path, vim.log.levels.ERROR) end
157 plugin_install_rev_file:write( plugin_rev )
158 plugin_install_rev_file:close()
159 if removed then
160 vim.notify( 'Plugin ' .. plugin_coords .. '@' .. plugin_rev .. ' updated!', vim.log.levels.INFO )
161 else
162 vim.notify( 'Plugin ' .. plugin_coords .. '@' .. plugin_rev .. ' installed!', vim.log.levels.INFO )
163 end
164end
166local delete_unused_plugins = function ( puck_root ) end
168local register_local_plugin = function ( workspace, plugin_coords )
169 local plugin_path = vim.fs.normalize( vim.fs.joinpath(workspace, vim.fs.basename(plugin_coords) ) )
170 local plugin_path_stat = vim.uv.fs_stat( plugin_path )
172 if (plugin_path_stat and plugin_path_stat.type == 'directory') then
173 vim.opt.runtimepath:prepend( plugin_path )
174 else
175 vim.notify( 'Failed to load local plugin ' .. plugin_path .. '!', vim.log.levels.ERROR )
176 end
177end
179local load_local_plugin = function ( plugin_coords )
180 local plugin_name = as_name( plugin_coords )
181 local plugin_init = {}
182 vim.tbl_extend( 'keep', plugin_init, vim.api.nvim_get_runtime_file( 'plugin/' .. plugin_name .. '.vim', false ) )
183 vim.tbl_extend( 'keep', plugin_init, vim.api.nvim_get_runtime_file( 'plugin/' .. plugin_name .. '.lua', false ) )
184 for _, init in pairs( plugin_init ) do
185 vim.cmd.source( init )
186 end
187end
189local load_registered_plugin = function ( plugin_name )
190 vim.cmd.packadd(plugin_name)
191 -- vim.cmd.helptags(plugin_name)
192 return require(plugin_name)
193end
195local setup = function ( options )
196 options = options or {}
197 vim.validate {
198 ['options.workspace'] = { options.workspace, 'string'},
199 }
201 options.plugins = options.plugins or {}
202 plugins = options.plugins
203 -- take control of loading plugins.
204 -- that means we have to take care of builtin plugins later
205 vim.opt.loadplugins = false
207 local puck_root = vim.fs.normalize( vim.fn.stdpath 'data' .. '/site/pack/puck/opt' )
208 vim.fn.mkdir( puck_root, 'p' )
210 for _, plugin in pairs( plugins ) do
211 local plugin_type = plugin[1]
212 local plugin_coords = plugin[2]
213 local plugin_rev = plugin[3]
214 if plugin_type == dev then
215 register_local_plugin(options.workspace, plugin_coords )
216 -- TODO def v plugins need configure too
217 -- configure_plugin(plugin_name)
218 else
219 install_plugin( puck_root, plugin_type, plugin_coords, plugin_rev)
220 end
221 end
223 delete_unused_plugins( puck_root )
225 -- manually load builtin plugins, that we disabled earlier
226 -- loads only a subset of builtins, that i find useful.
227 load_local_plugin 'plugin/shada.vim'
228 load_local_plugin 'plugin/tutor.vim'
229 load_local_plugin 'plugin/spellfile.vim'
230 load_local_plugin 'plugin/osc52.lua'
231 -- can this be useful on win32?
232 -- load_local_plugin 'plugin/man.lua'
233 load_local_plugin 'plugin/editorconfig.lua'
234end
236return {
237 -- FIXME: load needs to handle registerd and local plugin loading
238 load = load_registered_plugin,
239 setup = setup,
240 plugin_types = {
241 github = { type = gh, format = gh_format },
242 codeberg = { type = cb, format = cb_format },
243 sourcehut = { type = srht, format = srht_format },
244 development = { type = dev, format = nil },
245 },
246}

neovim/lua/std/prequire.lua

Modified

+1 / −1 text lines

4141 table.insert( mods, mod )
4242 else
4343 printStackTrace()
44 vim.notify_once( string.format( 'Missing module: %s', arg ), vim.log.levels.WARN )
44 vim.notify_once( string.format( 'Prequire is missing a module: %s', arg ), vim.log.levels.WARN )
4545 -- Return a proxy item that returns itself, so we can do things like
4646 -- prequire("module").setup()
4747 local proxy = {}

nushell/config.nu

Modified

+1 / −1 text lines

1515 }
1717 # some experimental options
18 buffer_editor: "nvim --clean"
18 buffer_editor: ["nvim" "--clean"]
1919 highlight_resolved_externals : true
2020 use_kitty_protocol : true
2121 render_right_prompt_on_last_line: true

nushell/gen-aliases.nu

Modified

+4 / −1 text lines

1919aka cat bat
2020aka list eza '--long' '--git'
21aka show bat
2221aka tar bsdtar
2322aka walk yazi
2423aka tree tre
24aka imgcat wezterm imgcat
26aka ll ls '--long'
27aka la ls '--long' '--all'
2629aka browse firefox

ssh/config

Modified

+7 / −6 text lines

1010 User git
1111 IdentityFile ~/.ssh/github.key
13Host seaduck
14 Hostname seaduck
13Host klops
14 Hostname klops
1515 User oli
16 IdentityFile ~/.ssh/seaduck.key
16 IdentityFile ~/.ssh/klops.key
18Host artifactory
19 Hostname artifactory.isp-insoft.de
20 User java
18Host tinibox
19 Hostname tinibox
20 User tini
21 IdentityFile ~/.ssh/tini.key
2223# catch-all pattern
2324Host *

tools/tools.csv

Modified

+1 / −0 text lines

4848taplo-cli;taplo; --locked --features lsp
4949tealdeer;tldr
5050tokei
51tre
5152# ugdb
5253viu
5354vivid