Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roobert/f-string-toggle.nvim
:yarn: A Neovim plugin to toggle python f-strings
https://github.com/roobert/f-string-toggle.nvim
Last synced: about 2 months ago
JSON representation
:yarn: A Neovim plugin to toggle python f-strings
- Host: GitHub
- URL: https://github.com/roobert/f-string-toggle.nvim
- Owner: roobert
- Created: 2023-01-22T19:33:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-09T10:08:52.000Z (9 months ago)
- Last Synced: 2024-01-24T08:51:00.004Z (4 months ago)
- Language: Lua
- Homepage:
- Size: 9.77 KB
- Stars: 25
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Lists
- awesome-neovim - roobert/f-string-toggle.nvim - Toggle python f-strings. (Programming Languages Support / (requires Neovim 0.5))
- awesome-stars - roobert/f-string-toggle.nvim - :yarn: A Neovim plugin to toggle python f-strings (Lua)
- awesome-neovim - roobert/f-string-toggle.nvim - Toggle python f-strings. (Programming Languages Support / (requires Neovim 0.5))
- awesome-neovim - roobert/f-string-toggle.nvim - Toggle python f-strings. (Programming Languages Support / (requires Neovim 0.5))
README
# :yarn: f-string-toggle
![f-string-toggle](https://user-images.githubusercontent.com/226654/216850121-8987bc4a-8237-40a9-90f0-0dccbf09de09.gif)
A modularised version of [this reddit post](https://www.reddit.com/r/neovim/comments/tge2ty/comment/i12ja8n/?context=3) by [u/ddmenddes_](https://www.reddit.com/user/ddmenddes_/) - all credit goes to the original author!
## Install
```
{
"roobert/f-string-toggle.nvim",
config = function()
require("f-string-toggle").setup({
key_binding = "f",
key_binding_desc = "Toggle f-string"
})
end,
}
```## Usage
Within a string press leader-f to toggle if it's an f-string or not.