Giter Club home page Giter Club logo

nvim-puppeteer's Introduction

nvim-puppeteer ๐ŸŽŽ

Master of strings. Automatically convert strings to f-strings or template strings and back.

Features

  • 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.

Requirements

  • nvim 0.9 or higher.
  • The respective Treesitter parsers are required: :TSInstall python javascript typescript.

Installation

-- 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.

Credits

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

Buy Me a Coffee

Buy Me a Coffee at ko-fi.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.