flash S in visual line mode and toggle with v
This commit is contained in:
@ -58,6 +58,15 @@ vim.keymap.set({ 'n', 'x' }, '<leader>Y', '"+yg_', { desc = 'Copy from system cl
|
||||
vim.keymap.set({ 'n', 'x' }, '<leader>p', '"+p', { desc = 'Paste from system clipboard' })
|
||||
vim.keymap.set({ 'n', 'x' }, '<leader>P', '"+P', { desc = 'Paste from system clipboard' })
|
||||
|
||||
vim.keymap.set('v', 'v', function()
|
||||
local mode = vim.fn.mode()
|
||||
if mode == 'v' then
|
||||
vim.api.nvim_feedkeys('V', 'n', true) -- Switch to Visual Line mode
|
||||
elseif mode == 'V' then
|
||||
vim.api.nvim_feedkeys('v', 'n', true) -- Switch to regular Visual mode
|
||||
end
|
||||
end, { noremap = true, silent = true })
|
||||
|
||||
vim.api.nvim_create_user_command('WinFont', 'set guifont=JetBrainsMonoNL\\ NF:h9', {})
|
||||
vim.api.nvim_create_user_command('LinuxFont', 'set guifont=JetBrainsMono\\ Nerd\\ Font\\ Mono:h7', {})
|
||||
|
||||
|
Reference in New Issue
Block a user