1
Fork 0

A ton of changes I forgot to commit

This commit is contained in:
Matei Adriel 2022-09-12 13:50:02 +02:00
commit 67fc636397
14 changed files with 87 additions and 28 deletions
dotfiles/neovim/lua/my

View file

@ -20,8 +20,17 @@ function M.mapSilent(mode, lhs, rhs, opts)
map(mode, lhs, rhs, options)
end
-- Performs a basic move operation
function M.move(from, to)
vim.keymap.set("n", to, from)
vim.keymap.set("n", from, "<Nop>")
end
function M.setup()
vim.keymap.set("n", "qq", ":wq<cr>") -- Save and quit
M.move("q", "yq")
M.move("Q", "yQ")
vim.keymap.set("n", "Q", ":wqa<cr>") -- Save and quit
-- Create chords
if arpeggio ~= nil then