improve marks

This commit is contained in:
andy 2025-03-19 16:36:35 -07:00
parent a90fe4658d
commit 22a9445c72
1 changed files with 3 additions and 3 deletions

View File

@ -25,9 +25,9 @@ vim.api.nvim_create_user_command('JumpToGlobalMark', function()
char = char:upper() char = char:upper()
end end
vim.cmd("normal! '" .. char) vim.cmd("silent! normal! '" .. char)
end, {}) end, {})
-- Map your preferred key combinations to the functions -- Map your preferred key combinations to the functions
vim.keymap.set('n', '<C-m>', ':SetGlobalMark<CR>', { noremap = true }) vim.keymap.set('n', '<leader>m', ':SetGlobalMark<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<C-s>', ':JumpToGlobalMark<CR>', { noremap = true }) vim.keymap.set('n', '<C-m>', ':JumpToGlobalMark<CR>', { noremap = true, silent = true })