Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ scripts/**
vsc-extension-quickstart.md
*.vsix
assets/**
!assets/icon.png
30 changes: 26 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,32 @@ ush⇥ → const [count, setCount] = useState(0);

## Install

Install [React Hooks Snippets](https://marketplace.visualstudio.com/items?itemName=AlDuncanson.react-hooks-snippets)
from the Visual Studio Marketplace. New to extensions? See the
[official VS Code docs](https://code.visualstudio.com/docs/configure/extensions/extensions)
for up-to-date install instructions.
**VS Code** — install from the
[Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=AlDuncanson.react-hooks-snippets).
New to extensions? See the
[official VS Code docs](https://code.visualstudio.com/docs/configure/extensions/extensions).

**VSCodium, Gitpod & other Open VSX editors** — grab the `.vsix` from the
[latest release](https://github.com/alDuncanson/react-hooks-snippets/releases/latest)
and run `codium --install-extension react-hooks-snippets-<version>.vsix`.
(An Open VSX listing is on the way.)

**Neovim** — this repo doubles as a
[LuaSnip](https://github.com/L3MON4D3/LuaSnip) snippet source, no port
needed. Add it with your plugin manager and load VS Code-format snippets:

```lua
-- lazy.nvim
{ "alDuncanson/react-hooks-snippets" },
```

```lua
require("luasnip.loaders.from_vscode").lazy_load()
```

Snippets surface through your completion engine
([blink.cmp](https://github.com/Saghen/blink.cmp),
[nvim-cmp](https://github.com/hrsh7th/nvim-cmp)) or a LuaSnip expand keymap.

## Snippets

Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "React Hooks Snippets",
"description": "Code snippets for React Hooks",
"version": "3.1.2",
"icon": "icon.png",
"icon": "assets/icon.png",
"publisher": "AlDuncanson",
"repository": {
"type": "git",
Expand Down