repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

85d19492d4b0c07a8cab1da0951d5c6e51310074

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (9)

+82 / −67 text lines

Diff layout

EJ-PC-00363.symlinks

Modified

+10 / −1 text lines

1616stackoverflow/so
1717~/AppData/Roaming/Sam Tay/so
19subversion/config
19subversion/config.win32
2020~/AppData/Roaming/Subversion/config
22subversion/diff.bat
23~/AppData/Roaming/Subversion/diff.bat
25subversion/diff3.bat
26~/AppData/Roaming/Subversion/diff3.bat
28subversion/merge.bat
29~/AppData/Roaming/Subversion/merge.bat
2231cargo/config.toml
2332~/scoop/persist/rustup/.cargo/config.toml

PC-00625.symlinks

Modified

+0 / −9 text lines

1919subversion/config.win32
2020~/AppData/Roaming/Subversion/config
22subversion/diff
23~/AppData/Roaming/Subversion/diff
25subversion/diff3
26~/AppData/Roaming/Subversion/diff3
28subversion/merge
29~/AppData/Roaming/Subversion/merge
3122subversion/diff.bat
3223~/AppData/Roaming/Subversion/diff.bat

neovim/init.lua

Modified

+7 / −7 text lines

88-- ▀▀▀ █ █ ██ █
99-- ▀ ▀
1010-- set general neovim editor settings
11require'bugabinga.options'
11require 'bugabinga.options'
1212-- install plugin manager and declare plugins to use
13require'bugabinga.lazy'
13require 'bugabinga.lazy'
1414-- configures the vim diagnostic subsystem
15require'bugabinga.diagnostic'
16require'bugabinga.trim'
17require'bugabinga.mark'
18require'bugabinga.lsp'
15require 'bugabinga.diagnostic'
16require 'bugabinga.trim'
17require 'bugabinga.mark'
18require 'bugabinga.lsp'
2020-- TODO:
21-- [ ] highlight return keyword
21-- [] learn marks and refac mark.lua
2222-- [ ] use ltex-ls for markdown, code comments and commit messages
2323-- [ ] DAP
2424-- [ ] add nu-check to nvim-lint

neovim/lazy-lock.json

Modified

+1 / −1 text lines

3838 "nvim-neoclip.lua": { "branch": "main", "commit": "4e406ae0f759262518731538f2585abb9d269bac" },
3939 "nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" },
4040 "nvim-surround": { "branch": "main", "commit": "0d6882635817a2677749a330127d12ac30a4f3c8" },
41 "nvim-treesitter": { "branch": "master", "commit": "f3fb301b267e85e4cbc725561da4a82b1c3089c8" },
41 "nvim-treesitter": { "branch": "master", "commit": "b5873bacb4ce44e0aac313abb28bb72e67fc9a53" },
4242 "nvim-treesitter-textobjects": { "branch": "master", "commit": "bd103502252027434ec42f628d2dbf54821d4ce6" },
4343 "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" },
4444 "nvim-ts-context-commentstring": { "branch": "main", "commit": "95e9ba9de4289d221666b66fd930d157c7ca08c6" },

neovim/lua/bugabinga/lsp/init.lua

Modified

+57 / −41 text lines

4949end
5151local lsp_start = function ( file_type_event )
52 -- vim.print("LSP START", file_type_event)
5452 local match = file_type_event.match
5654 local matches_to_ignore = ignored.filetypes
6058 local bufnr = file_type_event.buf
6159 local buffer_path = vim.api.nvim_buf_get_name( bufnr )
63 -- vim.print( "SEARCHING LSP CLIENT FOR:", match, buffer_path)
61 vim.print( 'searching lsp client for:', match, bufnr, buffer_path )
6563 local potential_client_configs = vim.iter( lsp_client_configs )
6664 :map( function ( config )
107105 for _, config in ipairs( potential_client_configs ) do
108106 local root_dir = type( config.root_dir ) == 'string' and config.root_dir or config.root_dir( buffer_path )
109107 local capabilities = vim.lsp.protocol.make_client_capabilities()
110 local cmp_capabilities = want 'cmp_nvim_lsp' ( function ( cmp )
111 return cmp.default_capabilities()
112 end, {} )
108 local cmp_capabilities = want 'cmp_nvim_lsp' ( function ( cmp ) return cmp.default_capabilities() end, {} )
113109 capabilities = table.extend( 'force', capabilities, cmp_capabilities, config.capabilities )
114110 -- vim.print( 'lsp capabilities', capabilities, config.capabilities, cmp_capabilities )
130126 on_error = function ( code, ... ) vim.print( 'LSP ERROR', code, ... ) end,
131127 before_init = config.before_init,
132128 -- on_init = nil, -- should i send workspace/didChangeConfiguration here?
133 -- on_exit = function(code, signal, client_id) vim.print("LSP CLIENT EXIT", code, signal, client_id) end,
129 on_exit = function ( code, signal, client_id ) vim.print( 'LSP CLIENT EXIT', code, signal, client_id ) end,
134130 -- on_attach = function(client, bufnr) vim.print("LSP CLIENT ATTACH", client.data.client_id, bufnr) end,
135131 trace = 'off',
136132 flags = { allow_incremental_sync = true, debounce_text_changes = 250, exit_timeout = 200 },
145141 bufnr = bufnr,
146142 -- TODO: reuse if workspaces
147143 -- local supported = vim.tbl_get(client, 'server_capabilities', 'workspace', 'workspaceFolders', 'supported')
148 -- reuse_client = function ( existing_client, new_config )
149 -- --TODO lsps with single file or worksopaces support do not need smame root dir. instead add_workspace_folder
150 -- local same_name_and_root = existing_client.name == new_config.name and
151 -- existing_client.workspace_folders[1] == new_config.root_dir;
152 -- -- vim.print( 'resuing lsp client?', same_name_and_root )
153 -- return same_name_and_root;
154 -- end,
144 reuse_client = function ( existing_client, new_config )
145 -- vim.print(
146 -- 'lsp resuse client',
147 -- existing_client.name,
148 -- existing_client.workspace_folders,
149 -- new_config.name,
150 -- new_config.root_dir
151 -- )
153 --TODO lsps with single file or worksopaces support do not need smame root dir. instead add_workspace_folder
154 local same_name = existing_client.name == new_config.name
156 local new_root = vim.fs.normalize( new_config.root_dir )
157 local existing_root = vim.fs.normalize( existing_client.workspace_folders[1].name )
158 local same_root = new_root == existing_root
160 local reuse = same_name and same_root
161 -- vim.print( 'reusing lsp client?', reuse )
162 return reuse
163 end,
155164 } )
157166 -- vim.print("ATTACHING LSP CLIENT", client_id)
211220 }
212221 end
214 -- if client.server_capabilities.inlayHintProvider then
215 -- TODO: how to prevent the UI from jittering
216 -- vim.lsp.inlay_hint( bufnr, true )
217 -- end
223 if client.server_capabilities.inlayHintProvider then
224 -- TODO: how to prevent the UI from jittering
225 add( map.normal {
226 description = 'Toggle inlay hints',
227 category = 'lsp',
228 buffer = bufnr,
229 keys = '<leader>ti',
230 command = function () vim.lsp.inlay_hint( bufnr, nil ) end,
231 } )
232 end
219 add(map.normal {
234 add( map.normal {
220235 description = 'Format current buffer',
221236 category = 'lsp',
222237 buffer = bufnr,
223238 keys = '<c-s>',
224239 --TODO: save actions
225240 command = vim.lsp.buf.format,
226 })
241 } )
228 add(map.normal {
243 add( map.normal {
229244 description = 'Show hover documentation above cursor.',
230245 category = 'lsp',
231246 buffer = bufnr,
232247 keys = { 'K', '<leader>lk' },
233248 command = vim.lsp.buf.hover,
234 })
249 } )
236 add(map.normal {
251 add( map.normal {
237252 description = 'Show signature help under cursor.',
238253 category = 'lsp',
239254 buffer = bufnr,
240255 keys = '<leader>ls',
241256 command = vim.lsp.buf.signature_help,
242 })
257 } )
244 add(map.normal {
259 add( map.normal {
245260 description = 'Show available code actions on current line.',
246261 category = 'lsp',
247262 buffer = bufnr,
248263 keys = '<leader>la',
249264 command = vim.lsp.buf.code_action,
250 })
265 } )
252 add(map.normal {
267 add( map.normal {
253268 description = 'Goto to definition of symbol under cursor.',
254269 category = 'lsp',
255270 buffer = bufnr,
256271 keys = '<leader>ld',
257272 command = vim.lsp.buf.definition,
258 })
273 } )
260 add(map.normal {
275 add( map.normal {
261276 description = 'Show implementations of symbol under cursor.',
262277 category = 'lsp',
263278 buffer = bufnr,
264279 keys = '<leader>li',
265280 command = vim.lsp.buf.implementation,
266 })
281 } )
268 add(map.normal {
283 add( map.normal {
269284 description = 'Show incoming calls of symbol under cursor.',
270285 category = 'lsp',
271286 buffer = bufnr,
272287 keys = '<leader>lci',
273288 command = vim.lsp.buf.incoming_calls,
274 })
289 } )
276 add(map.normal {
291 add( map.normal {
277292 description = 'Show outgoing calls of symbol under cursor.',
278293 category = 'lsp',
279294 buffer = bufnr,
280295 keys = '<leader>lco',
281296 command = vim.lsp.buf.outgoing_calls,
282 })
297 } )
284 add(map.normal {
299 add( map.normal {
285300 description = 'Show references of symbol under cursor.',
286301 category = 'lsp',
287302 buffer = bufnr,
288303 keys = '<leader>lr',
289304 command = vim.lsp.buf.references,
290 })
305 } )
292 add(map.normal {
307 add( map.normal {
293308 description = 'Rename symbol under cursor.',
294309 category = 'lsp',
295310 buffer = bufnr,
296311 keys = { '<f2>', '<leader>ln' },
297312 command = vim.lsp.buf.rename,
298 })
313 } )
299314end
301316local lsp_detach = function ( args )
317332 vim.bo[bufnr].omnifunc = old_omnifunc
318333 end
320 for _, keybind_delete in ipairs(keybinds) do
335 for _, keybind_delete in ipairs( keybinds ) do
321336 keybind_delete()
322337 end
324338end
326340auto 'lsp' {
349363local lsp_info = function ( command )
350364 local all_or_current = command.args and command.args == 'all' and {} or { bufnr = 0 }
351 local active_clients = vim.lsp.get_active_clients( all_or_current )
365 local active_clients = vim.lsp.get_clients( all_or_current )
353367 local infos = vim.iter( active_clients )
354368 :map( function ( client )
393407 desc = 'Shows detailed information about running LSP clients.',
394408} )
410--TODO: lsp restart, lsp exit
396412return setmetatable( _, {} )

neovim/lua/bugabinga/nugu/init.lua

Modified

+1 / −0 text lines

228228 sym '@label' { Label },
229229 sym '@operator' { Operator },
230230 sym '@keyword' { Keyword },
231 sym '@keyword.return' { fg = Keyword.fg, bg = Keyword.bg, gui = 'underline bold' },
231232 sym '@exception' { Exception },
232233 sym '@variable' { Identifier },
233234 sym '@type' { Type },

nushell/modules/aliases.nu

Modified

+1 / −1 text lines

22export alias show = bat
33export def list [] { ls --all --long --du --mime-type | where type == dir | append (ls --all --long --du --mime-type | where type != dir) }
44export alias web = firefox
5export alias edit = hx
5export alias edit = nvim
66# TODO ewrite bak command
77export alias backup = bak

subversion/config

Modified

+4 / −5 text lines

4747### This will override the environment variables that Subversion
4848### examines by default to find this information ($EDITOR,
4949### et al).
50editor-cmd = hx
50editor-cmd = nvim
5151### Set diff-cmd to the absolute path of your 'diff' program.
5252### This will override the compile-time default, which is to use
5353### Subversion's internal diff implementation.
54# TODO windows versions as bat files
55diff-cmd = /home/oli/.subversion/diff.bat
54diff-cmd = /home/oli/.subversion/diff
5655### Diff-extensions are arguments passed to an external diff
5756### program or to Subversion's internal diff implementation.
5857### Set diff-extensions to override the default arguments ('-u').
6059### Set diff3-cmd to the absolute path of your 'diff3' program.
6160### This will override the compile-time default, which is to use
6261### Subversion's internal diff3 implementation.
63# diff3-cmd = /home/oli/.subversion/diff3.bat
62diff3-cmd = /home/oli/.subversion/diff3
6463### Set diff3-has-program-arg to 'yes' if your 'diff3' program
6564### accepts the '--diff-program' option.
6665# diff3-has-program-arg = no
6766### Set merge-tool-cmd to the command used to invoke your external
6867### merging tool of choice. Subversion will pass 5 arguments to
6968### the specified command: base theirs mine merged wcfile
70merge-tool-cmd = /home/oli/.subversion/merge.bat
69merge-tool-cmd = /home/oli/.subversion/merge
7271### Section for configuring tunnel agents.
7372[tunnels]

subversion/config.win32

Modified

+1 / −2 text lines

4747### This will override the environment variables that Subversion
4848### examines by default to find this information ($EDITOR,
4949### et al).
50editor-cmd = hx
50editor-cmd = nvim
5151### Set diff-cmd to the absolute path of your 'diff' program.
5252### This will override the compile-time default, which is to use
5353### Subversion's internal diff implementation.
54# TODO windows versions as bat files
5554diff-cmd = C:/Users/okr/AppData/Roaming/Subversion/diff.bat
5655### Diff-extensions are arguments passed to an external diff
5756### program or to Subversion's internal diff implementation.