up
This commit is contained in:
@@ -1,18 +1,25 @@
|
||||
-- Edition mappings
|
||||
--
|
||||
|
||||
local status_wk, wk = pcall(require, 'which-key')
|
||||
if not status_wk then
|
||||
--
|
||||
local status_kh, kh = pcall(require, 'custom.plugins.keymaps-helper')
|
||||
if not status_kh then
|
||||
return
|
||||
end
|
||||
|
||||
wk.add {
|
||||
{
|
||||
mode = { 'n', 'v', 'i' },
|
||||
-- mapping runs here as which-key intercepts ctrl-z signal before term
|
||||
{ '<C-z>', '<CMD>undo<CR>', desc = 'Undo', silent = true, noremap = true, hidden = true },
|
||||
},
|
||||
}
|
||||
kh.map({ 'n', 'v', 'i' }, '<C-z>', '<CMD>undo<CR>', { silent = true, noremap = true, desc = 'Undo' })
|
||||
|
||||
-- local status_wk, wk = pcall(require, 'which-key')
|
||||
-- if not status_wk then
|
||||
-- return
|
||||
-- end
|
||||
--
|
||||
-- wk.add {
|
||||
-- {
|
||||
-- mode = { 'n', 'v', 'i' },
|
||||
-- -- mapping runs here as which-key intercepts ctrl-z signal before term
|
||||
-- { '<C-z>', '<CMD>undo<CR>', desc = 'Undo', silent = true, noremap = true, hidden = true },
|
||||
-- },
|
||||
-- }
|
||||
|
||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
-- Key mappings groups
|
||||
--
|
||||
|
||||
local wk = require 'which-key'
|
||||
local status_wk, wk = pcall(require, 'which-key')
|
||||
if not status_wk then
|
||||
return
|
||||
end
|
||||
|
||||
wk.add {
|
||||
{
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
-- Deactivated key mappings
|
||||
--
|
||||
|
||||
local wk = require 'which-key'
|
||||
local status_wk, wk = pcall(require, 'which-key')
|
||||
if not status_wk then
|
||||
return
|
||||
end
|
||||
|
||||
wk.add {
|
||||
mode = { 'n', 'v', 'i' },
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
-- Edition mappings
|
||||
-- Obsidian mappings
|
||||
--
|
||||
|
||||
local status_wk, wk = pcall(require, 'which-key')
|
||||
@@ -9,8 +9,8 @@ end
|
||||
wk.add {
|
||||
{
|
||||
mode = { 'n', 'v', 'i' },
|
||||
{ '<leader>on', '<CMD>Obsidian new<CR>', desc = 'create new note', silent = true, noremap = true },
|
||||
{ '<leader>os', '<CMD>Obsidian search<CR>', desc = 'search note', silent = true, noremap = true },
|
||||
{ '<leader>on', '<CMD>Obsidian new<CR>', desc = 'create [n]ew note', silent = true, noremap = true },
|
||||
{ '<leader>os', '<CMD>Obsidian search<CR>', desc = '[s]earch note', silent = true, noremap = true },
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ wk.add {
|
||||
-- gitsigns
|
||||
{ '<leader>tb', gitsigns.toggle_current_line_blame, desc = 'toggle git show [b]lame line' },
|
||||
{ '<leader>tD', gitsigns.preview_hunk_inline, desc = 'toggle git show [D]eleted' },
|
||||
{ '<leader>tm', '<CMD>RenderMarkdown buf_toggle<CR>', desc = 'toggle markdown rendering for current' },
|
||||
{ '<leader>tm', '<CMD>RenderMarkdown buf_toggle<CR>', desc = 'toggle [m]arkdown rendering for current' },
|
||||
}
|
||||
|
||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||
|
||||
Reference in New Issue
Block a user