summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-05-19 01:06:15 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-05-19 01:06:15 +0200
commit71517e8ff5d9ce4de2774e0eb4a8f3eb64cdb141 (patch)
tree04c4248327c813d61c253ec28cfba6a5275dbbee /nvim
parent46adf4ad461fe0f2ff9dae00be097cc5a0cae413 (diff)
nvim: mappings: open man in vertical
Diffstat (limited to 'nvim')
-rw-r--r--nvim/nvim/lua/mappings.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/nvim/nvim/lua/mappings.lua b/nvim/nvim/lua/mappings.lua
index 84b27d6..83077f6 100644
--- a/nvim/nvim/lua/mappings.lua
+++ b/nvim/nvim/lua/mappings.lua
@@ -17,5 +17,8 @@ vim.keymap.set('n', 'k', 'gk')
vim.keymap.set('n', 'j', 'gj')
vim.keymap.set('n', 'k', 'gk')
+vim.keymap.set('n', 'gm', ':vertical Man ' .. vim.fn.expand '<cword>' .. '<CR>',
+ { desc = 'open man page in vertical' })
+
vim.api.nvim_create_user_command('MakeTags', '!ctags -R .', {})
vim.api.nvim_create_user_command('Sgrep', 'silent grep! <args> | copen 10', {nargs= '+'})