flash S in visual line mode and toggle with v
This commit is contained in:
parent
8bad13c702
commit
fcc007ff75
@ -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', {})
|
||||
|
||||
|
@ -26,6 +26,7 @@ return {
|
||||
mode = { 'n', 'o', 'x' },
|
||||
function()
|
||||
require('flash').treesitter()
|
||||
vim.api.nvim_feedkeys('V', 'n', true)
|
||||
end,
|
||||
desc = 'Flash treesitter',
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user