Skip to content

Instantly share code, notes, and snippets.

@tomaszkubacki
tomaszkubacki / keymaps.lua
Created October 1, 2025 15:55
Lazy vim keymaps.lua mapping to execute current line in terminal
-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
--
local map = LazyVim.safe_keymap_set
function execute_line()
-- Yank the current line into the default register
vim.cmd('normal! ""yy')