1
Fork 0

feat: random push

This commit is contained in:
Matei Adriel 2022-04-06 23:19:19 +03:00
parent f7cb914dd1
commit 94c8aa2189
5 changed files with 20 additions and 12 deletions

View file

@ -5,7 +5,7 @@
output (uinput-sink "My KMonad output"
;; To understand the importance of the following line, see the section on
;; Compose-key sequences at the near-bottom of this file.
"/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap" -option compose:ralt")
"/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap -option compose:ralt")
cmp-seq ralt ;; Set the compose key to `RightAlt'
cmp-seq-delay 5 ;; 5ms delay between each compose-key sequence press
@ -73,6 +73,7 @@
(defalias
mth (layer-toggle math)
Mth (layer-toggle capital-math)
mov (layer-toggle movement)
mathExtra (layer-toggle math-extra)
)
@ -81,7 +82,6 @@
shr #(@topBar \ \_ \_ \( @shrugFace \) \_ / @topBar) ;; ¯\_(ツ)_/¯
ml (tap-hold-next-release 200 @gl @mathExtra)
mll l
)
(defsrc
@ -99,7 +99,16 @@
tab q w e r t y u i o p [ ] \
@mth a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lsgt lmet lalt spc ralt rctl
@mov lsgt lmet lalt spc ralt rctl
)
(deflayer movement
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ lft down up rght _ _ _
_ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
)
(deflayer math
@ -128,4 +137,3 @@
_ _ @Gx _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
)

View file

@ -25,7 +25,7 @@ function M.setup()
if arpeggio ~= nil then
-- Create chords
arpeggio.chord("n", "jl", ":w<cr>") -- Double space to sace
arpeggio.chord("n", "ji", ":w<cr>") -- Saving
arpeggio.chord("i", "jk", "<Esc>") -- Remap Esc to jk
arpeggio.chord("i", "<Leader>k", "<C-k><cr>") -- Rebind digraph insertion to leader+k
arpeggio.chord("inv", "<Leader>a", "<C-6><cr>") -- Rebind switching to the last pane using leader+a

View file

@ -11,7 +11,7 @@ function M.chord(mode, lhs, rhs, opts)
end
else
local options = helpers.mergeTables(opts, {noremap = true})
local settings = ""
local settings = options.settings or ""
if options.silent then settings = settings .. "s" end

View file

@ -22,7 +22,7 @@ function M.setup()
for key, value in pairs(idrisChords) do
arpeggio.chord("n", "i" .. key,
":lua require('idris2.code_action')." ..
value .. "()<CR>")
value .. "()<CR>", {settings = "b"})
end
end
},

View file

@ -28,11 +28,11 @@ function M.setup()
vim.g.marker_define_jump_mappings = 0 -- disable automatic binding of marker jumping (conflicts with tmux-vim-navigator)
arpeggio.chord("inv", "sj", '<Plug>MarkersJumpF')
arpeggio.chord("inv", "sk", '<Plug>MarkersJumpB')
arpeggio.chord("inv", "mi", '<Plug>MarkersMark')
arpeggio.chord("inv", "ml", '<Plug>MarkersCloseAllAndJumpToLast')
arpeggio.chord("inv", "mo", '<Plug>MarkersJumpOutside')
arpeggio.chord("nv", "sj", '<Plug>MarkersJumpF')
arpeggio.chord("nv", "sk", '<Plug>MarkersJumpB')
arpeggio.chord("nv", "mi", '<Plug>MarkersMark')
arpeggio.chord("nv", "ml", '<Plug>MarkersCloseAllAndJumpToLast')
arpeggio.chord("nv", "mo", '<Plug>MarkersJumpOutside')
for key, brackets in pairs(extraBrackets) do
A.augroup('custom-brackets' .. key, function()