https://github.com/escwxyz/snippets
Personal code snippets for neovim and VS Code.
https://github.com/escwxyz/snippets
code-snippets vscode-snippets
Last synced: 3 months ago
JSON representation
Personal code snippets for neovim and VS Code.
- Host: GitHub
- URL: https://github.com/escwxyz/snippets
- Owner: escwxyz
- License: mit
- Created: 2023-04-17T05:11:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-08T07:09:32.000Z (over 1 year ago)
- Last Synced: 2025-02-10T06:42:05.429Z (5 months ago)
- Topics: code-snippets, vscode-snippets
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A personal code snippet collection, mainly for TypeScript, Rust and Dart.
This is meant for personal use, so it is expected to be incomplete.
Some snippets are from other open source repositories, such as [friendly-snippets](https://github.com/rafamadriz/friendly-snippets) and [flutter-riverpod-snippets](https://github.com/RobertBrunhage/flutter-riverpod-snippets).
So feel free to use or modify the codebase if you want.
For neovim, clone the repo into your local machine, and use [Luasnip](https://github.com/L3MON4D3/LuaSnip) to load the snippets:
```lua
require("luasnip.loaders.from_vscode").lazy_load({paths = "path/to/your/snippets/folder"})
```For VS Code, you need to install the `vsce` npm package globally with:
```bash
npm install --global @vscode/vsce
```and then clone the repo, and build it into extension via:
```bash
cd snippets
npm run build
```then in your VS Code, click extensions tab, click the top right icon, then click `install from VSIX` to select the extension file.