dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: keymaps for comments and cleanup of todos
880edb8861dfa10c42de4f838465434b7a5b7928
Oliver Jan Krylow <olver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (10)
neovim/after/syntax/lua.lua
Deleteddeleted file mode 10064428 -vim.opt_local.conceallevel
= 2 neovim/filetype.lua
Modified 5 5 vim.g.do_filetype_lua
= 1 7 7 vim.g.did_load_filetypes
= 0 11 - service =
'systemd',
15 - network =
'systemd',
27 - [
'justfile'] =
'just',
28 - [
'Justfile'] =
'just',
29 - [
'.justfile'] =
'just',
30 - [
'.Justfile'] =
'just',
11 + service =
'systemd',
15 + network =
'systemd',
19 + [
'justfile'] =
'just',
20 + [
'Justfile'] =
'just',
21 + [
'.justfile'] =
'just',
22 + [
'.Justfile'] =
'just',
neovim/ftplugin/java.lua
Modified 3 -vim.opt_local.conceallevel
= 2 5 1 local want
= require 'bugabinga.std.want' 32 28 vim.notify
'starting eclipse.jdt.ls in syntaxserver mode' 38 31 local installed, jdtls_installer
= installer.get_server
'jdtls' 39 32 if not installed
then 40 33 vim.notify(
'jdtls is not installed!',
error)
75 68 shared_configuration
= jdtls_config_dir
79 72 local jdtls_command
= {
82 75 '-Declipse.application=org.eclipse.jdt.ls.core.id1',
83 76 '-Dosgi.bundles.defaultStartLevel=4',
84 77 '-Declipse.product=org.eclipse.jdt.ls.core.product',
89 78 '-Dlog.protocol=' .. tostring(debug_log),
92 - '-XX:+UseParallelGC',
93 - '-XX:GCTimeRatio=4',
94 - '-XX:AdaptiveSizePolicyWeight=90',
80 + '-XX:+UnlockExperimentalVMOptions',
95 85 '-Dsun.zip.disableMemoryMapping=true',
96 86 '-Djava.import.generatesMetadataFilesAtProjectRoot=false',
105 95 vim.fn.glob(jdtls_install_dir
.. '/plugins/org.eclipse.equinox.launcher_*.jar',
false,
false),
108 97 shared_configuration,
110 99 jdtls_workspace_dir,
neovim/ftplugin/neo-tree.lua
Deleteddeleted file mode 1006442 -vim.opt_local.colorcolumn
= {}
54 54 require 'bugabinga.autopairs' 55 55 require 'bugabinga.todo' 56 56 require 'bugabinga.markdown' 57 -require 'bugabinga.repl' 58 57 require 'bugabinga.surround' 64 63 require 'bugabinga.lsp' neovim/lua/bugabinga/comments.lua
Modified 1 +local map
= require 'bugabinga.std.keymap' 1 2 local want
= require 'bugabinga.std.want' 2 -want {
'Comment' }(
function(comment)
3 +want {
'Comment' } (
function(comment)
13 + local options
= {
expr =
true,
remap =
true }
15 + description =
'Toggle linewise comment',
16 + category = map.CATEGORY.EDITING,
17 + mode = map.MODE.NORMAL,
19 + command =
"v:count == 0 ? '<Plug>(comment_toggle_current_linewise)' : '<Plug>(comment_toggle_linewise_count)'",
23 + description =
'Toggle blockwise comment',
24 + category = map.CATEGORY.EDITING,
25 + mode = map.MODE.NORMAL,
27 + command =
"v:count == 0 ? '<Plug>(comment_toggle_current_blockwise)' : '<Plug>(comment_toggle_blockwise_count)'",
32 + description =
'Toggle motion linewise comment',
33 + category = map.CATEGORY.EDITING,
34 + mode = map.MODE.NORMAL,
36 + command =
'<Plug>(comment_toggle_linewise)',
39 + description =
'Toggle motion blockwise comment',
40 + category = map.CATEGORY.EDITING,
41 + mode = map.MODE.NORMAL,
43 + command =
'<Plug>(comment_toggle_blockwise)',
47 + description =
'Toggle visual linewise comment',
48 + category = map.CATEGORY.EDITING,
49 + mode = map.MODE.VISUAL,
51 + command =
'<Plug>(comment_toggle_linewise_visual)',
54 + description =
'Toggle visual blockwise comment',
55 + category = map.CATEGORY.EDITING,
56 + mode = map.MODE.VISUAL,
58 + command =
'<Plug>(comment_toggle_blockwise_visual)',
neovim/lua/bugabinga/options/autocommands.lua
Modified 1 1 local auto
= require 'bugabinga.std.auto' 3 3 auto
'highlight_yanked_text' {
4 - description =
'briefly highlight yanked text',
5 - events =
'TextYankPost',
7 - callback =
function()
8 - vim.highlight.on_yank {
timeout =
500 }
4 + description =
'briefly highlight yanked text',
5 + events =
'TextYankPost',
7 + callback =
function()
8 + vim.highlight.on_yank {
timeout =
500 }
12 12 auto
'disable_colorcolumn_in_special_buffers' {
13 - description =
'Hide colorcolumn in buffers, that do not show source code.',
14 - events = {
'FileType' },
16 - pattern =
'Trouble,qf,neo-tree,help,toggleterm',
17 - callback =
function()
18 - vim.opt_local.colorcolumn
= {}
22 -auto
'change_readonly_style' {
23 - description =
'Change some highlights for readonly buffers.',
24 - events = {
'BufEnter' },
25 - callback =
function()
26 - if vim.bo.readonly
then 28 - vim.notify
'this buffer is read-only' 13 + description =
'Hide colorcolumn in buffers, that do not show source code.',
14 + events = {
'FileType' },
15 + pattern =
'Trouble,qf,help,toggleterm',
16 + callback =
function()
17 + vim.opt_local.colorcolumn
= {}
neovim/lua/bugabinga/options/keymaps.lua
Modified 1 1 local map
= require 'bugabinga.std.keymap' 5 - keys = map.KEY.SPACE,
6 - command = map.COMMAND.NOP,
5 + keys = map.KEY.SPACE,
6 + command = map.COMMAND.NOP,
9 9 vim.g.mapleader
= ' ' 10 10 vim.g.maplocalleader
= ' ' 14 - mode = map.MODE.ALL,
15 - keys = map.KEY.ENTER,
16 - command = map.COMMAND.NOP,
14 + mode = map.MODE.ALL,
15 + keys = map.KEY.ENTER,
16 + command = map.COMMAND.NOP,
26 - mode = map.MODE.ALL,
28 - command = map.COMMAND.NOP,
26 + mode = map.MODE.ALL,
28 + command = map.COMMAND.NOP,
32 - mode = map.MODE.ALL,
34 - command = map.COMMAND.NOP,
32 + mode = map.MODE.ALL,
34 + command = map.COMMAND.NOP,
38 - mode = map.MODE.ALL,
40 - command = map.COMMAND.NOP,
38 + mode = map.MODE.ALL,
40 + command = map.COMMAND.NOP,
45 - mode = map.MODE.ALL,
47 - command = map.COMMAND.NOP,
45 + mode = map.MODE.ALL,
47 + command = map.COMMAND.NOP,
51 - mode = map.MODE.ALL,
52 - keys = map.KEY.DOWN,
53 - command = map.COMMAND.NOP,
51 + mode = map.MODE.ALL,
52 + keys = map.KEY.DOWN,
53 + command = map.COMMAND.NOP,
57 - mode = map.MODE.ALL,
58 - keys = map.KEY.LEFT,
59 - command = map.COMMAND.NOP,
57 + mode = map.MODE.ALL,
58 + keys = map.KEY.LEFT,
59 + command = map.COMMAND.NOP,
63 - mode = map.MODE.ALL,
64 - keys = map.KEY.RIGHT,
65 - command = map.COMMAND.NOP,
63 + mode = map.MODE.ALL,
64 + keys = map.KEY.RIGHT,
65 + command = map.COMMAND.NOP,
69 69 local function open_link_under_cursor()
70 - local file_under_cursor
= vim.fn.expand
'<cfile>' 72 - if file_under_cursor
and file_under_cursor:match
'%a+://.+' then 73 - local Job
= require 'plenary.job' 76 - command =
'firefox',
77 - args = { file_under_cursor },
78 - on_exit =
function(status, code)
79 - print(status:result(), code)
80 - vim.notify(
'Openend ' .. file_under_cursor)
71 + local file_under_cursor
= vim.fn.expand
'<cfile>' 73 + if file_under_cursor
and file_under_cursor:match
'%a+://.+' then 74 + local Job
= require 'plenary.job' 76 + command =
'firefox',
77 + args = { file_under_cursor },
78 + on_exit =
function()
79 + vim.notify(
'Openend ' .. file_under_cursor)
87 - description =
'Open web link under cursor in browser',
88 - category = map.CATEGORY.NAVIGATION,
89 - mode = map.MODE.NORMAL,
91 - command = open_link_under_cursor,
86 + description =
'Open web link under cursor in browser',
87 + category = map.CATEGORY.NAVIGATION,
88 + mode = map.MODE.NORMAL,
90 + command = open_link_under_cursor,
95 - description =
'Dismiss current notifications',
96 - category = map.CATEGORY.NOTIFY,
97 - mode = map.MODE.NORMAL,
98 - keys = map.KEY.ESCAPE,
99 - command =
function()
100 - pcall(vim.notify.dismiss)
94 + description =
'Dismiss current notifications',
95 + category = map.CATEGORY.NOTIFY,
96 + mode = map.MODE.NORMAL,
97 + keys = map.KEY.ESCAPE,
98 + command =
function()
99 + pcall(vim.notify.dismiss)
neovim/lua/bugabinga/plugins/init.lua
Modified169 169 'mfussenegger/nvim-jdtls',
171 171 'mfussenegger/nvim-dap',
173 - 'hkupty/iron.nvim',
175 173 'ziontee113/color-picker.nvim',
neovim/lua/bugabinga/repl.lua
Deleteddeleted file mode 100644 1 -local want
= require 'bugabinga.std.want' 5 -}(
function(core, view)
9 - should_map_plug =
false,
11 - scratch_repl =
true,
12 - repl_open_cmd = view.curry.right(
80),
20 - send_motion =
'<space>sc',
21 - visual_send =
'<space>sc',
22 - send_file =
'<space>sf',
23 - send_line =
'<space>sl',
24 - send_mark =
'<space>sm',
25 - mark_motion =
'<space>mc',
26 - mark_visual =
'<space>mc',
27 - remove_mark =
'<space>md',
28 - cr =
'<space>s<cr>',
29 - interrupt =
'<space>s<space>',
31 - clear =
'<space>cl',