repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

helix: configures some lsps

aca4644bf8a4a6593c3be482b1ed8dc3fe9144f7

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (11)

git/gitconfig.linux

Modified
4 4 [sendemail]
5 5 smtpserver = box.bugabinga.net
6 6 smtpuser = oliver@bugabinga.net
7 7 smtpencryption = tls
8 8 smtpserverport = 587
9 9 annotate = yes
11 -[credential "https://github.com"]
12 - helper =
13 - helper = !/usr/bin/gh auth git-credential
15 -[credential "https://gist.github.com"]
16 - helper =
17 - helper = !/usr/bin/gh auth git-credential

helix/config.toml

Modified
1 -theme = "nugu-light"
1 +theme = "nugu-dark"
3 3 [editor]
4 4 shell = ["nu", "--commands"]
8 8 line-number = "relative"
9 9 rulers = [81, 121, 141]
11 -auto-completion = false
11 +auto-completion = true
12 12 completion-trigger-len = 3
13 13 auto-info = true
14 14 auto-pairs = false
81 81 enable = true
83 83 [keys.normal]
84 -ret = ["add_newline_below", "move_line_down"]
85 -A-ret = ["add_newline_above", "move_line_up"]
87 84 # move current line up
88 -A-up = [
89 - "extend_to_line_bounds",
90 - "delete_selection",
91 - "move_line_up",
92 - "paste_before",
94 -A-k = [
95 - "extend_to_line_bounds",
96 - "delete_selection",
97 - "move_line_up",
98 - "paste_before",
85 +A-k = [ "extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before", ]
101 86 # move current line down
102 -A-down = ["extend_to_line_bounds", "delete_selection", "paste_after"]
103 87 A-j = ["extend_to_line_bounds", "delete_selection", "paste_after"]
88 +"A-=" = ":format"
105 90 [keys.insert]
106 -"C-space" = "completion"
91 +up = "no_op"
92 +down = "no_op"
93 +left = "no_op"
94 +right = "no_op"
95 +pageup = "no_op"
96 +pagedown = "no_op"
97 +home = "no_op"
98 +end = "no_op"

helix/languages.toml

Modified
1 -[[languages]]
1 +[[language]]
2 2 name = "nasm"
3 -language-server = { command = "asm-lsp" }
3 +auto-format = true
4 +language-servers = [{ name = "asm-lsp" }]
5 -[[languages]]
6 +[[language]]
6 7 name = "xml"
7 8 auto-format = false
8 -language-server = { command = "lemminx" }
9 +language-servers = [{ name = "lemminx" }]
11 +[[language]]
12 +name = "java"
13 +auto-format = false
14 +language-servers = [{ name = "jdtls" }]
16 +[language-server.asm-lsp]
17 +command = "asm-lsp"
19 +[language-server.lemminx]
20 +command = "lemminx"

neovim/lazy-lock.json

Modified
3 3 "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
4 4 "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
5 5 "actions-preview.nvim": { "branch": "master", "commit": "9f52a01c374318e91337697ebed51c6fae57f8a4" },
6 - "better-escape.nvim": { "branch": "master", "commit": "62015330fc831306f5229f24b2db981d07f816c1" },
6 + "better-escape.nvim": { "branch": "master", "commit": "bb197e51a91a635deb88630813c3bfc284413697" },
7 7 "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
8 8 "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
9 9 "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
10 10 "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
11 11 "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
12 - "colorizer.nvim": { "branch": "master", "commit": "7f84ba0d39b37484f5f1f838cafda9cb5241a532" },
13 - "conform.nvim": { "branch": "master", "commit": "1d1362b0261d06a0b91872e916c172320bbb988a" },
12 + "colorizer.nvim": { "branch": "master", "commit": "c1602ff3f11566bb7f16f90985b0c59d3d7db0ef" },
13 + "conform.nvim": { "branch": "master", "commit": "0ebe875d9c306f5fc829db38492ffff2a70d8e9d" },
14 14 "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
15 - "dressing.nvim": { "branch": "master", "commit": "6741f1062d3dc6e4755367a7e9b347b553623f04" },
15 + "dressing.nvim": { "branch": "master", "commit": "c5775a888adbc50652cb370073fcfec963eca93e" },
16 16 "fidget.nvim": { "branch": "main", "commit": "ef99df04a1c53a453602421bc0f756997edc8289" },
17 17 "flash.nvim": { "branch": "main", "commit": "7bb4a9c75d1e20cd24185afedeaa11681829ba23" },
18 18 "gitsigns.nvim": { "branch": "main", "commit": "0b04035bb7b3c83e999b9676e2fb46fd0aa9f910" },
19 19 "glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" },
20 20 "heirline.nvim": { "branch": "master", "commit": "0d797435e54645a5f98bad7ad6046aac1ef95c1e" },
21 - "indent-blankline.nvim": { "branch": "master", "commit": "65e20ab94a26d0e14acac5049b8641336819dfc7" },
22 - "lazy.nvim": { "branch": "main", "commit": "9d445ebbd89401544a538c6af080e4d2785abb49" },
23 - "lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
24 - "mini.bracketed": { "branch": "main", "commit": "abbaf7711dffabf7db180c6d61deb4a321b2a2cd" },
21 + "indent-blankline.nvim": { "branch": "master", "commit": "3fe94b8034dd5241cb882bb73847303b58857ecf" },
22 + "lazy.nvim": { "branch": "main", "commit": "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" },
23 + "lspkind.nvim": { "branch": "master", "commit": "cff4ae321a91ee3473a92ea1a8c637e3a9510aec" },
24 + "mini.bracketed": { "branch": "main", "commit": "833d66df6e0588222312a963780c6ec42ed7437d" },
25 25 "mini.bufremove": { "branch": "main", "commit": "1ee294a97e091d3cf967974df622c0d887890dc2" },
26 26 "mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
27 27 "neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" },
28 - "neogen": { "branch": "main", "commit": "6de0add4805165317ab7d3d36b5cef48b1b865f3" },
28 + "neogen": { "branch": "main", "commit": "e932ba918b56723436b77aa3efb844a11b2851ab" },
29 29 "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" },
30 30 "nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" },
31 - "nvim-autopairs": { "branch": "master", "commit": "78a4507bb9ffc9b00f11ae0ac48243d00cb9194d" },
32 - "nvim-cmp": { "branch": "main", "commit": "d818fd0624205b34e14888358037fb6f5dc51234" },
33 - "nvim-genghis": { "branch": "main", "commit": "8b10f06735e1ecef93be61347e6c083d5263b331" },
31 + "nvim-autopairs": { "branch": "master", "commit": "fd2badc24e675f947162a16c124d395bde80dbd6" },
32 + "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
33 + "nvim-genghis": { "branch": "main", "commit": "382ddb90a31313f0b2e059db50df0ca4dd2859d2" },
34 34 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
35 35 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
36 - "nvim-lint": { "branch": "master", "commit": "efc6fc83f0772283e064c53a8f9fb5645bde0bc0" },
36 + "nvim-lint": { "branch": "master", "commit": "a7ce9c78a7c710c28bee56dfab10a5c0c80b7fb5" },
37 37 "nvim-lsp-file-operations": { "branch": "master", "commit": "92a673de7ecaa157dd230d0128def10beb56d103" },
38 38 "nvim-navbuddy": { "branch": "master", "commit": "f22bac988f2dd073601d75ba39ea5636ab6e38cb" },
39 39 "nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
40 40 "nvim-neoclip.lua": { "branch": "main", "commit": "709c97fabec9da7d04f7d2f5e207423af8c02871" },
41 - "nvim-spectre": { "branch": "master", "commit": "9a28f926d3371b7ef02243cbbb653a0478d06e31" },
41 + "nvim-spectre": { "branch": "master", "commit": "ba7fb777edff6c1fbbeffd343e113af64c04e90a" },
42 42 "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
43 - "nvim-tree.lua": { "branch": "master", "commit": "f9ff00bc06d7cb70548a3847d7a2a05e928bc988" },
44 - "nvim-treesitter": { "branch": "master", "commit": "a6b2f4ecc8a47011868632142a9b687d7e0f9aaf" },
45 - "nvim-treesitter-context": { "branch": "master", "commit": "2aba92ceb1479485953007f4d5adf34d0b66917e" },
43 + "nvim-tree.lua": { "branch": "master", "commit": "d41b4ca013ed89e41b9c0ecbdae5f1633e42f7fa" },
44 + "nvim-treesitter": { "branch": "master", "commit": "4770d9a1a77b0cc2b723c646c3dbe43a9133e5db" },
45 + "nvim-treesitter-context": { "branch": "master", "commit": "e6cc783b74606d97ca9eff6494e3f5c2ca603a50" },
46 46 "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
47 - "nvim-treesitter-textobjects": { "branch": "master", "commit": "34867c69838078df7d6919b130c0541c0b400c47" },
48 - "nvim-ts-autotag": { "branch": "main", "commit": "26c365cc7d58d0da17b13e747855d331eb26fcf0" },
49 - "nvim-ts-context-commentstring": { "branch": "main", "commit": "6b5f95aa4d24f2c629a74f2c935c702b08dbde62" },
50 - "nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" },
47 + "nvim-treesitter-textobjects": { "branch": "master", "commit": "bf8d2ad35d1d1a687eae6c065c3d524f7ab61b23" },
48 + "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
49 + "nvim-ts-context-commentstring": { "branch": "main", "commit": "375c2d86cee6674afd75b4f727ce3a80065552f7" },
50 + "nvim-web-devicons": { "branch": "master", "commit": "9793801f974bba70e4ac5d7eae6c4f5659993d8e" },
51 51 "nvim-window": { "branch": "main", "commit": "81f29840ac3aaeea6fc2153edfabebd00d692476" },
52 - "oil.nvim": { "branch": "master", "commit": "9e5eb2fcd1dfee2ff30c89273ffff179e42034b9" },
52 + "oil.nvim": { "branch": "master", "commit": "1fe476daf0b3c108cb8ee1fc1226cc282fa2c9c1" },
53 53 "pair-ls.nvim": { "branch": "master", "commit": "ccf3280d8cafec48e4947dd827abbc456435dfad" },
54 54 "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
55 - "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
55 + "plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" },
56 56 "qf_helper.nvim": { "branch": "master", "commit": "fa3c2f3f2706e2c9984409c9c14b5993302ddfa7" },
57 - "schemastore.nvim": { "branch": "main", "commit": "2580d32172f66fa37c0e57fb14e1b5bc94ed9e15" },
57 + "schemastore.nvim": { "branch": "main", "commit": "b546852f7a477276805b01f84ac79c28a962c55b" },
58 58 "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
59 59 "speedtyper.nvim": { "branch": "main", "commit": "d73b3d2bdd574dd9c2e39e3558a4fe26f081d885" },
60 - "ssr.nvim": { "branch": "main", "commit": "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },
60 + "ssr.nvim": { "branch": "main", "commit": "7c95cfa5836508f08ae833a4b31d2ed265560f64" },
61 61 "substitute.nvim": { "branch": "main", "commit": "97f49d16f8eea7967d41db4f657dd63af53eeba1" },
62 62 "suda.vim": { "branch": "master", "commit": "b97fab52f9cdeabe2bbb5eb98d82356899f30829" },
63 63 "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
64 64 "telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" },
65 - "telescope-zoxide": { "branch": "main", "commit": "68966349aa1b8e9ade403e18479ecf79447389a7" },
65 + "telescope-zoxide": { "branch": "main", "commit": "54bfe630bad08dc9891ec78c7cf8db38dd725c97" },
66 66 "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
67 - "text-case.nvim": { "branch": "main", "commit": "d6122bcf12ebca7751af4a2e082dec6ed5e95386" },
67 + "text-case.nvim": { "branch": "main", "commit": "e898cfd46fa6cde0e83abb624a16e67d2ffc6457" },
68 68 "tint.nvim": { "branch": "master", "commit": "02bd0527a315a80e4e25bb2dd7b6994fb0daae01" },
69 69 "todo-comments.nvim": { "branch": "main", "commit": "313b04e5b02d29ab9275c9295ff5e2b73921b0eb" },
70 70 "tree-sitter-nu": { "branch": "main", "commit": "0bb9a602d9bc94b66fab96ce51d46a5a227ab76c" },
71 - "treesj": { "branch": "main", "commit": "275f83c81a5a1f5ae23c1eac30c4ac28beebbca2" },
72 - "twilight.nvim": { "branch": "main", "commit": "38dc017474ef05605ca14a2577e01e09f0db7133" },
71 + "treesj": { "branch": "main", "commit": "0d81326b5afd36babe7dd480aabbb0b05f33e688" },
72 + "twilight.nvim": { "branch": "main", "commit": "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" },
73 73 "venn.nvim": { "branch": "main", "commit": "b09c2f36ddf70b498281845109bedcf08a7e0de0" },
74 74 "vim-startuptime": { "branch": "master", "commit": "ac2cccb5be617672add1f4f3c0a55ce99ba34e01" },
75 - "vim-vscode-snippets": { "branch": "master", "commit": "812e60d1c648f889328761ec71daff09d1eb3177" },
75 + "vim-vscode-snippets": { "branch": "master", "commit": "c34e9edee6a00cf3d0b8edb515e08e3df450bcfa" },
76 76 "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
77 77 "which-key.nvim": { "branch": "main", "commit": "4b7167f8fb2dba3d01980735e3509e172c024c29" },
78 - "zen-mode.nvim": { "branch": "main", "commit": "a31cf7113db34646ca320f8c2df22cf1fbfc6f2a" }
78 + "zen-mode.nvim": { "branch": "main", "commit": "29b292bdc58b76a6c8f294c961a8bf92c5a6ebd6" }

neovim/lua/config/oxocarbon.lua

Added
new file mode 100644
1 +local puck = require'puck'
2 +puck.load 'oxocarbon'
3 +vim.cmd.colorscheme 'oxocarbon'

neovim/lua/puck.lua

Modified
22 22 local plugins = {}
24 24 local as_name = function ( plugin_coords )
25 - return vim.fs.basename(plugin_coords):gsub( '(%w+)%.?%w*', '%1' )
25 + return vim.fs.basename( plugin_coords ):gsub( '(%w+)%.?%w*', '%1' )
28 -local 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)
28 +local 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 )
38 -local 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 - }
38 +local 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')
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' )
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)
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
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 )
78 + local contains_name = function ( name, path )
79 + return name:find( plugin_name,
80 + 0, true )
81 + end
82 + local extracted_dir = vim.fs.find( contains_name,
83 + { path = puck_root, type = 'directory', limit = 1, } )
84 + assert( #extracted_dir ~= 0, 'No directory was found in tarball' )
85 + assert( #extracted_dir == 1,
86 + 'Too many directories were found in tarball. Expected one!' )
87 + -- FIXME: filter out files and folders, that are unnecessary for neovim plugins
88 + local ok = vim.uv.fs_rename( extracted_dir[1], plugin_install_path )
89 + assert( ok,
90 + string.format( 'Failed to move extracted plugin from %s to %s.',
91 + extracted_dir[1], plugin_install_path ) )
92 + configure_plugin( plugin_name )
93 + end )
88 - vim.uv.shutdown(tarball_data_stream, function()
89 - vim.uv.close(curl_handle)
90 - vim.uv.close(tar_handle)
91 - end)
95 + vim.uv.shutdown( tarball_data_stream, function ()
96 + vim.uv.close( curl_handle )
97 + vim.uv.close( tar_handle )
98 + end )
94 101 local delete_directory_recursive = function ( path )
115 122 return false
118 - return true
121 -local 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
126 +local as_url_format = function ( plugin_type )
127 + assert( plugin_type ~= dev, 'local plugins need not have an url format!' )
128 + if plugin_type == gh then return gh_format end
129 + if plugin_type == cb then return cb_format end
130 + if plugin_type == srht then return srht_format end
127 - error('unknown plugin type '..plugin_type..' given.')
132 + error( 'unknown plugin type ' .. plugin_type .. ' given.' )
130 -local install_plugin = function ( puck_root, plugin_type, plugin_coords, plugin_rev)
135 +local install_plugin = function ( puck_root, plugin_type, plugin_coords, plugin_rev )
131 136 local plugin_name = as_name( plugin_coords )
132 137 local plugin_install_path = vim.fs.normalize( vim.fs.joinpath( puck_root, plugin_name ) )
133 138 local plugin_install_path_stat = vim.uv.fs_stat( plugin_install_path )
134 139 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' ))
141 + local plugin_install_rev_path = vim.fs.normalize( vim.fs.joinpath( puck_root, plugin_name .. '.rev' ) )
138 143 -- either do nothing or update/fresh install
139 144 if (vim.uv.fs_access( plugin_install_rev_path, 'R' )) then
140 145 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
146 + if not plugin_install_rev_file then
147 + vim.notify( 'Unable to read rev file ' .. plugin_install_rev_path,
148 + vim.log.levels.ERROR )
149 + end
142 150 local current_rev = plugin_install_rev_file:read()
143 151 plugin_install_rev_file:close()
144 152 if current_rev == plugin_rev then
145 - configure_plugin(plugin_name)
146 - return
153 + configure_plugin( plugin_name )
154 + return
149 157 -- rev is different, must be update (we don`t care if up or down) or fresh install
150 158 local removed = delete_directory_recursive( plugin_install_path )
151 - local url_format = as_url_format(plugin_type)
159 + local url_format = as_url_format( plugin_type )
152 160 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
161 + download_plugin_into( puck_root, plugin_name, plugin_tarball_url, plugin_install_path, callback )
162 + local mode = vim.uv.fs_access( plugin_install_rev_path, 'W' ) and 'w+' or 'w'
163 + local plugin_install_rev_file = io.open( plugin_install_rev_path, mode )
164 + if not plugin_install_rev_file then
165 + vim.notify( 'Unable to write rev file ' .. plugin_install_rev_path,
166 + vim.log.levels.ERROR )
167 + end
157 168 plugin_install_rev_file:write( plugin_rev )
158 169 plugin_install_rev_file:close()
159 170 if removed then
160 - vim.notify( 'Plugin ' .. plugin_coords .. '@' .. plugin_rev .. ' updated!', vim.log.levels.INFO )
171 + vim.notify( 'Plugin ' .. plugin_coords .. '@' .. plugin_rev .. ' updated!', vim.log.levels.INFO )
162 - vim.notify( 'Plugin ' .. plugin_coords .. '@' .. plugin_rev .. ' installed!', vim.log.levels.INFO )
173 + vim.notify( 'Plugin ' .. plugin_coords .. '@' .. plugin_rev .. ' installed!', vim.log.levels.INFO )
166 177 local delete_unused_plugins = function ( puck_root ) end
168 179 local register_local_plugin = function ( workspace, plugin_coords )
169 - local plugin_path = vim.fs.normalize( vim.fs.joinpath(workspace, vim.fs.basename(plugin_coords) ) )
180 + local plugin_path = vim.fs.normalize( vim.fs.joinpath( workspace, vim.fs.basename( plugin_coords ) ) )
170 181 local plugin_path_stat = vim.uv.fs_stat( plugin_path )
172 183 if (plugin_path_stat and plugin_path_stat.type == 'directory') then
189 200 local load_registered_plugin = function ( plugin_name )
190 - vim.cmd.packadd(plugin_name)
201 + vim.cmd.packadd( plugin_name )
191 202 -- vim.cmd.helptags(plugin_name)
192 - return require(plugin_name)
203 + return require( plugin_name )
195 206 local setup = function ( options )
196 207 options = options or {}
197 208 vim.validate {
198 - ['options.workspace'] = { options.workspace, 'string'},
209 + ['options.workspace'] = { options.workspace, 'string', },
201 212 options.plugins = options.plugins or {}
212 223 local plugin_coords = plugin[2]
213 224 local plugin_rev = plugin[3]
214 225 if plugin_type == dev then
215 - register_local_plugin(options.workspace, plugin_coords )
226 + register_local_plugin( options.workspace, plugin_coords )
216 227 -- TODO def v plugins need configure too
217 228 -- configure_plugin(plugin_name)
219 - install_plugin( puck_root, plugin_type, plugin_coords, plugin_rev)
230 + install_plugin( puck_root, plugin_type, plugin_coords, plugin_rev )
238 249 load = load_registered_plugin,
239 250 setup = setup,
240 251 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 },
252 + github = { type = gh, format = gh_format, },
253 + codeberg = { type = cb, format = cb_format, },
254 + sourcehut = { type = srht, format = srht_format, },
255 + development = { type = dev, format = nil, },

neovim/selene.toml

Added
new file mode 100644
1 +std = "neovim"
3 +[rules]
4 +global_usage = "allow"
5 +multiple_statements = "allow"
6 +incorrect_standard_library_use = "allow"
7 +mixed_table = "allow"

nushell/config.nu

Modified
1 -use external_completer.nu
3 1 # TODO: use nugu colors
4 2 # for more information on themes see
5 3 # https://github.com/nushell/nushell/blob/main/docs/How_To_Coloring_and_Theming.md
15 13 completions: {
16 14 use_ls_colors: true
17 - algorithm: "fuzzy"
18 - external: {
19 - completer: (external_completer)
20 - }
23 17 # some experimental options
31 25 isolation: true

nushell/gen-aliases.nu

Modified
19 19 aka cat bat
20 20 aka list eza '--long' '--git'
21 -aka show bat
22 21 aka tar bsdtar
23 22 aka walk yazi
24 23 aka tree tre
24 +aka imgcat 'wezterm imgcat'
26 26 aka browse firefox

ssh/config

Modified
10 10 User git
11 11 IdentityFile ~/.ssh/github.key
13 -Host seaduck
14 - Hostname seaduck
13 +Host klops
14 + Hostname klops
15 15 User oli
16 - IdentityFile ~/.ssh/seaduck.key
16 + IdentityFile ~/.ssh/klops.key
18 -Host artifactory
19 - Hostname artifactory.isp-insoft.de
20 - User java
18 +Host tinibox
19 + Hostname tinibox
20 + User tini
21 + IdentityFile ~/.ssh/tini.key
22 23 # catch-all pattern
23 24 Host *

tools/tools.csv

Modified
47 47 taplo-cli;taplo
48 48 tealdeer;tldr
49 49 tokei
50 +tre
50 51 # ugdb
52 53 vivid