aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 5efb850..b76b95d 100644
--- a/init.lua
+++ b/init.lua
@@ -154,6 +154,9 @@ vim.api.nvim_set_keymap('n', '<leader>psl', '<cmd>LanguageToolClear<cr>', { nore
vim.api.nvim_set_keymap('n', '<leader>pc', '<cmd>cclose<cr><cmd>lclose<cr>', { noremap = true })
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 })
-- Build a custom status line
local status_line = {