Skip to content

Commit 97cdfe2

Browse files
committed
nvim: offer shortform pasted printings of the selected variable
1 parent f7aff6c commit 97cdfe2

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ versioning is done in a continuous fashion without worries of breaking changes.
66

77
## patches
88

9+
- `nvim`: offer shortform pasted printings of the selected variable 2025-12-16
910
- `tmux`: remove continuous and resurrecting sessions with accident 2025-12-16
1011
- `claude`: include the anthropic coding assistants in current work 2025-12-16
1112
- `darwin`: setup work computer with shared defaults and dock setup 2025-12-16

programs/neovim/config/lua/user/files/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ require("user.files.go")
44
require("user.files.groovy")
55
require("user.files.mdx")
66
require("user.files.netrw")
7+
require("user.files.python")
78
require("user.files.zig")
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
require("termcodes")
2+
3+
vim.api.nvim_create_autocmd({
4+
"FileType",
5+
}, {
6+
pattern = {
7+
"python",
8+
},
9+
callback = function()
10+
vim.fn.setreg("l", 'yiwoprint(f": {}\\n")' .. ESC .. "F:Pf{p$")
11+
end,
12+
})

0 commit comments

Comments
 (0)