Master of strings. Automatically convert strings to f-strings or template strings and back.
- When typing
{}
in a python string, automatically convert it to an f-string. - When typing
${}
in a javascript or typescript string, automatically convert it to a template string. - When removing the
{}
or${}
, automatically convert it back to a regular string. - Also works with multi-line strings.
- No configuration needed, just install and you are ready to go.
- nvim 0.9 or higher.
- The respective Treesitter parsers are required:
:TSInstall python javascript typescript
.
-- lazy.nvim
{
"chrisgrieser/nvim-puppeteer",
dependencies = "nvim-treesitter/nvim-treesitter",
lazy = false, -- plugin lazy-loads itself
},
-- packer
use {
"chrisgrieser/nvim-puppeteer",
requires = "nvim-treesitter/nvim-treesitter",
}
No configuration or .setup()
call is needed. The plugin already automatically loads as little as possible.
About Me
In my day job, I am a sociologist studying the social mechanisms underlying the digital economy. For my PhD project, I investigate the governance of the app economy and how software ecosystems manage the tension between innovation and compatibility. If you are interested in this subject, feel free to get in touch.
Blog
I also occasionally blog about vim: Nano Tips for Vim
Profiles