aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index b76b95d..4667e37 100644
--- a/init.lua
+++ b/init.lua
@@ -156,7 +156,7 @@ vim.api.nvim_set_keymap('n', '<leader>pg', '<cmd>Goyo<cr>', { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>pp', 'vipJVgq', { noremap = true })
-- Add "il" text object to mean "in line"
vim.api.nvim_set_keymap('x', 'il', 'g_o^', { noremap = true })
-vim.api.nvim_set_keymap('o', 'il', ':normal vil<cr>', { noremap = true })
+vim.api.nvim_set_keymap('o', 'il', '<cmd>normal vil<cr>', { noremap = true })
-- Build a custom status line
local status_line = {
@@ -375,7 +375,8 @@ vim.g.ale_fixers = {
}
-- osc-yank
-vim.api.nvim_set_keymap('n', '<leader>y', '<cmd>OSCYankRegister 0<cr>', { noremap = true })
+vim.api.nvim_set_keymap('n', '<leader>yy', '<cmd>OSCYankRegister 0<cr>', { noremap = true })
+vim.api.nvim_set_keymap('n', '<leader>yl', '<cmd>normal mevily`e<space>yy<cr>', { noremap = true })
-- vim-angry-reviewer
vim.g.AngryReviewerEnglish = 'american'