Skip to content

Commit

Permalink
feat(settings): update TypeScript inlay hints and add settings genera…
Browse files Browse the repository at this point in the history
…tion guide
  • Loading branch information
jellydn committed Jun 8, 2024
1 parent a2ddf69 commit 06cb3bc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Update your settings.json file with the following configuration:
<!-- ALL-SETTINGS:START -->

```json
// settings.json, generated at Mon Jun 03 2024 21:38:12 GMT+0800 (Singapore Standard Time)
// settings.json, generated at Sat Jun 08 2024 17:15:21 GMT+0800 (Singapore Standard Time)
// Zed settings
//
// For information on how to configure Zed, see the Zed
Expand Down Expand Up @@ -68,7 +68,10 @@ Update your settings.json file with the following configuration:
"TypeScript": {
// Refer https://github.com/jellydn/ts-inlay-hints for how to setup for Neovim and VSCode
"inlay_hints": {
"enabled": true
"enabled": true,
"show_parameter_hints": false,
"show_other_hints": true,
"show_type_hints": true
}
}
},
Expand All @@ -79,6 +82,7 @@ Update your settings.json file with the following configuration:
}
}
}

```

<!-- ALL-SETTINGS:END -->
Expand All @@ -94,7 +98,7 @@ Update your keymap.json file with the following key bindings:
<!-- ALL-KEYMAPS:START -->

```json
// keymap.json, generated at Mon Jun 03 2024 21:38:12 GMT+0800 (Singapore Standard Time)
// keymap.json, generated at Sat Jun 08 2024 17:15:21 GMT+0800 (Singapore Standard Time)
[
{
"context": "Editor && (vim_mode == normal || vim_mode == visual) && !VimWaiting && !menu",
Expand Down Expand Up @@ -199,6 +203,7 @@ Update your keymap.json file with the following key bindings:
}
}
]

```

<!-- ALL-KEYMAPS:END -->
Expand All @@ -214,6 +219,14 @@ Refer to the [Ollama](https://ollama.ai) Setup Guide for detailed [instructions]
- [JavaScript - Zed](https://zed.dev/docs/languages/javascript)
- [Other Zed config](https://gist.github.com/search?l=JSON&o=desc&q=Zed+config&s=)

## How to generate the settings

```bash
cp ~/.config/zed/settings.json settings.json
cp ~/.config/zed/keymap.json keymap.json
bun run cli.ts
```

## Author

👤 **Huynh Duc Dung**
Expand Down
5 changes: 4 additions & 1 deletion settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
"TypeScript": {
// Refer https://github.com/jellydn/ts-inlay-hints for how to setup for Neovim and VSCode
"inlay_hints": {
"enabled": true
"enabled": true,
"show_parameter_hints": false,
"show_other_hints": true,
"show_type_hints": true
}
}
},
Expand Down

0 comments on commit 06cb3bc

Please sign in to comment.