feat: bluetooth, better keybinds for vim and direnv?
This commit is contained in:
parent
5c93d9dbed
commit
79b65f3640
14 changed files with 129 additions and 31 deletions
dotfiles/neovim/lua/my
|
@ -21,16 +21,15 @@ function M.mapSilent(mode, lhs, rhs, opts)
|
|||
end
|
||||
|
||||
function M.setup()
|
||||
M.map("i", "jj", "<Esc>") -- Remap Esc to jj
|
||||
M.map("n", "<Space><Space>", ":w<cr>") -- Double space to sace
|
||||
M.map("n", "vv", "<C-w>v") -- Create vertical split
|
||||
|
||||
if arpeggio ~= nil then
|
||||
-- Create chords
|
||||
arpeggio.chord("n", "jl", ":w<cr>") -- Double space to sace
|
||||
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
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -35,8 +35,8 @@ function M.setup()
|
|||
arpeggio.chord("inv", "mo", '<Plug>MarkersJumpOutside')
|
||||
|
||||
for key, brackets in pairs(extraBrackets) do
|
||||
for _, v in ipairs(brackets) do
|
||||
A.augroup('custom-brackets' .. key, function()
|
||||
A.augroup('custom-brackets' .. key, function()
|
||||
for _, v in ipairs(brackets) do
|
||||
local action = M.createBracketCommand(v[1], v[2], 0, v[3] or "")
|
||||
local glob = '*.' .. key
|
||||
|
||||
|
@ -46,8 +46,8 @@ function M.setup()
|
|||
end
|
||||
|
||||
A.autocmd('BufEnter', glob, action)
|
||||
end)
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue