A Neovim plugin that uses Python's print() function to format and convert lines in your buffer. It captures Python's string representation and formatting of objects and applies it back to your buffer.
Using lazy.nvim:
{
"amitkot/printformat.nvim",
config = function()
require("printformat").setup()
end
}
When you're on a line containing text you want to format:
- Enter command mode
- Type
:PrintFormat
The line will be processed through Python's print() function and replaced with the formatted output.
- Converting string representations
- Applying Python's string formatting
- Cleaning up string literals
- Standardizing output format
MIT License - see LICENSE file