repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

nushell: fixed openening manifest if it is a string

758545aeddf520de21dcd04a29a5a378418c4be4

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (10)

mpv/input.conf

Modified
7 7 CTRL+6 no-osd change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Upscale_Denoise_CNN_x2_M.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Restore_CNN_S.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_S.glsl"; show-text "Anime4K: Mode C+A (Fast)"
9 9 CTRL+0 no-osd change-list glsl-shaders clr ""; show-text "GLSL shaders cleared"
11 +r cycle_values video-rotate 90 180 270 0

neovim/after/ftplugin/c.lua

Modified
1 -vim.opt.makeprg = 'use build.nu; build debug'
1 +vim.opt.makeprg = 'nu build.nu debug'

neovim/init.lua

Modified
82 82 require 'bugabinga.winbar'
83 83 require 'bugabinga.supress_warnings'
84 84 require 'bugabinga.autopairs'
85 -require 'bugabinga.debugging'
87 86 require 'bugabinga.incubator'

neovim/lua/bugabinga/debugging.lua

Deleted
deleted file mode 100644
1 -local puk = require 'std.puk'
2 -local dbg = require 'std.dbg'
3 -local map = require 'std.map'
5 -local function configure_lldb(dap)
6 - --FIXME: i cannot get this shit to work!!! too stoopid!
7 - local lldb_dap_exe = vim.fn.exepath 'lldb-dap'
8 - if lldb_dap_exe ~= '' then
9 - dap.adapters.lldb = {
10 - type = 'executable',
11 - command = lldb_dap_exe,
12 - name = 'lldb',
13 - }
14 - dap.configurations.c = {
15 - {
16 - name = 'Launch',
17 - type = 'lldb',
18 - request = 'launch',
19 - program = function()
20 - return coroutine.create(function(dap_run_co)
21 - -- local path = vim.fn.input({
22 - -- prompt = 'Path to executable: ',
23 - -- default = vim.fn.getcwd() .. '/',
24 - -- completion = 'file'
25 - -- })
27 - local path = require("dap.utils").pick_file({ filter = "output/*" })
28 - local choice = (path and path ~= "") and path or dap.ABORT
29 - coroutine.resume(dap_run_co, choice)
30 - end)
31 - end,
32 - cwd = '${workspaceFolder}',
33 - stopOnEntry = false,
34 - initCommands = {
35 - 'settings set target.x86-disassembly-flavor intel',
36 - 'settings set symbols.auto-download background',
37 - 'settings set symbols.enable-background-lookup true',
38 - 'settings set symbols.enable-lldb-index-cache true'
39 - },
40 - env = function()
41 - local variables = {}
42 - for k, v in pairs(vim.fn.environ()) do
43 - table.insert(variables, string.format("%s=%s", k, v))
44 - end
45 - return variables
46 - end,
47 - --TODO: if exe takes arguments, use vim.input here to provide them
48 - args = {},
50 - -- 💀
51 - -- if you change `runInTerminal` to true, you might need to change the yama/ptrace_scope setting:
52 - --
53 - -- echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
54 - --
55 - -- Otherwise you might get the following error:
56 - --
57 - -- Error on launch: Failed to attach to the target process
58 - --
59 - -- But you should be aware of the implications:
60 - -- https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
61 - runInTerminal = true,
62 - },
63 - }
64 - dap.configurations.cpp = dap.configurations.c
65 - dap.configurations.rust = dap.configurations.c
66 - end
67 -end
69 -puk.defer 'dap' (function(dap)
70 - dap.set_log_level(dbg.get() and 'TRACE' or 'ERROR')
71 - puk 'nio'
72 - local dapui = puk 'dapui'
73 - local dap_disasm = puk 'dap-disasm'
74 - local dap_virtual_text = puk 'nvim-dap-virtual-text'
75 - configure_lldb(dap)
76 - dapui.setup()
77 - dap_disasm.setup()
78 - dap_virtual_text.setup()
79 - dap.listeners.before.attach.dapui_config = function() dapui.open() end
80 - dap.listeners.before.launch.dapui_config = function() dapui.open() end
81 - dap.listeners.before.event_terminated.dapui_config = function() dapui.close() end
82 - dap.listeners.before.event_exited.dapui_config = function() dapui.close() end
83 - map.normal {
84 - description = 'toggle breakpoint',
85 - category = 'debug',
86 - keys = '<leader>db',
87 - command = dap.toggle_breakpoint,
88 - }
89 - map.normal {
90 - description = 'run to cursor',
91 - category = 'debug',
92 - keys = '<leader>dr',
93 - command = dap.run_to_cursor,
94 - }
95 - map.normal {
96 - description = 'run last',
97 - category = 'debug',
98 - keys = '<leader>dl',
99 - command = dap.run_last,
100 - }
101 - map.normal {
102 - description = 'continue/start debugger',
103 - category = 'debug',
104 - keys = '<leader>dd',
105 - command = dap.continue,
106 - }
107 - map.normal {
108 - description = 'step into',
109 - category = 'debug',
110 - keys = '<Right>',
111 - command = dap.step_into,
112 - }
113 - map.normal {
114 - description = 'step over',
115 - category = 'debug',
116 - keys = '<Down>',
117 - command = dap.step_over,
118 - }
119 - map.normal {
120 - description = 'step out',
121 - category = 'debug',
122 - keys = '<Left>',
123 - command = dap.step_out,
124 - }
125 - map.normal {
126 - description = 'restart frame',
127 - category = 'debug',
128 - keys = '<Up>',
129 - command = dap.restart_frame,
130 - }
131 - map.normal.visual {
132 - description = 'eval under cursor',
133 - category = 'debug',
134 - keys = '<leader>de',
135 - command = dapui.eval,
136 - }
137 - map.normal {
138 - description = 'show element',
139 - category = 'debug',
140 - keys = '<leader>de',
141 - command = function() dapui.float_element(nil, { position = 'center' }) end,
142 - }
143 -end)

neovim/lua/bugabinga/format.lua

Modified
45 45 ['_'] = { 'trim_whitespace', 'trim_newlines' },
47 47 formatters = {
48 - mdslw = {
49 - prepend_args = { '--features', 'keep-linebreaks,collate-link-defs,outsource-inline-links', '--stdin-filepath', '$FILENAME' },
50 - },
48 + -- this one causes too much pain, even though i like it in principle
49 + -- mdslw = {
50 + -- prepend_args = { '--features', 'keep-linebreaks,collate-link-defs,outsource-inline-links', '--stdin-filepath', '$FILENAME' },
51 + -- },
52 53 log_level = dbg.get() and vim.log.levels.TRACE or vim.log.levels.ERROR,

neovim/lua/bugabinga/lsp.lua

Modified
34 34 -- these servers should be started always on file load
35 35 local primary = {
36 - 'clangd',
37 36 'gopls',
38 37 'lemminx',
39 38 'lua_ls',
49 48 vim.lsp.enable(primary)
50 49 -- these servers should only be startet on demand
51 50 local optional = {
51 + 'clangd',
52 52 'ast_grep',
53 53 'contextive'
56 56 user_command.LspStart 'Starts the given lsp server for the current buffer' (
57 57 function()
58 - -- TODO
59 - -- FIXME
60 - -- HACK
61 - -- NOTE
58 + -- TODO(oli): take name of lsp server as parameter
59 + vim.lsp.enable(optional)

neovim/spell/nerd.utf-8.add

Modified
157 157 vendored
158 +Testbarkeit
159 +Glossar

neovim/spell/nerd.utf-8.add.spl

Modified

Previous version contains binary or non-UTF-8 data.

Current version contains binary or non-UTF-8 data.

nushell/modules/package/installer.nu

Modified
28 28 if ($candidates | has-one) {
29 29 let candidate = ($candidates | first)
30 - $package = $candidate
30 + $package = open $candidate
31 31 } else {
32 32 print $"Found multiple matches for ($query). Pick one!"
33 33 $package = ($candidates | input list --fuzzy "Which package to install? ")
36 - let manifest = open $package
36 + let manifest = $package
37 37 install-manifest $manifest

topgrade/lnx.toml

Modified
1 1 [git]
2 -repos = [
3 - "/home/oli/Source/*",
4 -]
2 +repos = ["/home/oli/Source/*"]
5 3 arguments = "--ff --rebase"
6 4 max_concurrency = 12
7 5 pull_predefined = false
8 +[misc]
9 +# List of remote machines with Topgrade installed on them
10 +remote_topgrades = ["klops"]
12 +# Arguments to pass to SSH when upgrading remote systems
13 +ssh_arguments = "-o ConnectTimeout=2"