working keymappings in macos

main
Steffen Rademacker 8 months ago
parent 35bbc50bed
commit c5b2e6287d

@ -8,6 +8,10 @@ wk.register({
['<right>'] = { '<cmd>bnext<cr>', 'buffer navigation with arrow keys' },
['<down>'] = { '<cmd>blast<cr>', 'buffer navigation with arrow keys' },
['<left>'] = { '<cmd>bprevious<cr>', 'buffer navigation with arrow keys' },
['˙'] = { '<<', 'bubbling lines with alt-hjkl', noremap = false },
[''] = { ':move .+1<cr>', 'bubbling lines with alt-hjkl', noremap = false },
['˚'] = { ':move .-2<cr>', 'bubbling lines with alt-hjkl', noremap = false },
['¬'] = { '>>', 'bubbling lines with alt-hjkl', noremap = false },
g = {
a = { '<cmd>lua vim.lsp.buf.code_action()<cr>', 'run code action' },
@ -42,12 +46,6 @@ wk.register({
['<C-k>'] = { '<cmd>NavigatorUp<cr>', 'move to the upper split' },
['<C-l>'] = { '<cmd>NavigatorRight<cr>', 'move to the lower split' },
['<C-V>'] = { 'v', 'remapping visual/visual-block mode' },
-- with <ALT/META> as modifier
['<M-k>'] = { ':move .-2<cr>', 'bubbling lines with alt-hjkl', noremap = false },
['<M-j>'] = { ':move .+1<cr>', 'bubbling lines with alt-hjkl', noremap = false },
['<M-h>'] = { '<<', 'bubbling lines with alt-hjkl', noremap = false },
['<M-l>'] = { '>>', 'bubbling lines with alt-hjkl', noremap = false },
})
-- all normal mode leader key mappings in one place
@ -76,16 +74,13 @@ wk.register({
-- visual-mode mappings
wk.register({
[';'] = { ':', 'Colon with semicolon' },
v = { '<C-V>', 'remapping visual/visual-block mode' },
['˙'] = { '<gv', 'bubbling lines with alt-hjkl', noremap = false },
[''] = { ":move '>+1<cr>gv", 'bubbling lines with alt-hjkl', noremap = false },
['˚'] = { ":move '<-2<cr>gv", 'bubbling lines with alt-hjkl', noremap = false },
['¬'] = { '>gv', 'bubbling lines with alt-hjkl', noremap = false },
-- with <CTRL> as modifier
v = { '<C-V>', 'remapping visual/visual-block mode' },
['<C-V>'] = { 'v', 'remapping visual/visual-block mode' },
-- with <ALT/META> as modifier
['<M-k>'] = { ":move '<-2<cr>gv", 'bubbling lines with alt-hjkl', noremap = false },
['<M-j>'] = { ":move '>+1<cr>gv", 'bubbling lines with alt-hjkl', noremap = false },
['<M-h>'] = { '<gv', 'bubbling lines with alt-hjkl', noremap = false },
['<M-l>'] = { '>gv', 'bubbling lines with alt-hjkl', noremap = false },
}, { mode = 'v' })
-- non-normal-mode mappings

@ -29,9 +29,13 @@ config.default_prog = { '/opt/homebrew/bin/zsh' }
config.font_size = 14.0
config.initial_cols = 120
config.initial_rows = 32
config.inactoutive_pane_hsb = { saturation = 0.5, brightness = 0.9 }
config.inactive_pane_hsb = { saturation = 0.5, brightness = 0.9 }
config.leader = { key = 'a', mods = 'CTRL', timeout_milliseconds = 1000 }
config.scrollback_lines = 5000
config.send_composed_key_when_left_alt_is_pressed = true
˙˚¬
config.show_new_tab_button_in_tab_bar = false
config.tab_bar_at_bottom = true
config.use_dead_keys = false

Loading…
Cancel
Save