├── .env.example
├── .github
└── FUNDING.yml
├── .gitignore
├── LICENSE
├── README.md
├── extension.toml
├── languages
└── env
│ ├── config.toml
│ └── highlights.scm
├── public
└── screenshot.png
└── test.conf
/.env.example:
--------------------------------------------------------------------------------
1 | # Database configuration
2 | DB_HOST=localhost
3 | DB_PORT=5432
4 | DB_NAME=mydatabase
5 | DB_USER=myuser
6 | DB_PASSWORD=mypassword
7 |
8 | # Application configuration
9 | APP_ENV=development
10 | APP_DEBUG=true
11 | APP_URL=http://localhost:3000
12 |
13 | # Security settings
14 | JWT_SECRET=mysecretkey
15 | ENCRYPTION_KEY=myencryptionkey
16 |
17 | # API keys
18 | API_KEY_GOOGLE=mygoogleapikey
19 | API_KEY_SENDGRID=mysendgridapikey
20 |
21 | # Email configuration
22 | EMAIL_HOST="smtp.mailtrap.io"
23 | EMAIL_PORT=2525
24 | EMAIL_USER=myemailuser
25 | EMAIL_PASSWORD=myemailpassword
26 |
27 | # Other configuration
28 | CACHE_DRIVER=redis
29 | QUEUE_DRIVER=sqs
30 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: zarifpour
4 | buy_me_a_coffee: zarifpour
5 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | *.wasm
3 | tree-sitter-*
4 | target/
5 | grammars/
6 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | MIT License
3 |
4 | Copyright (c) 2024 Daniel Zarifpour
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 🔐 Environment Support for Zed
2 |
3 | Enhance Zed with environment syntax highlighting!
4 |
5 | - Supports `.env` and `.conf` files.
6 | - Tree Sitter: [tree-sitter-dotenv](https://github.com/zarifpour/tree-sitter-dotenv)
7 |
8 | 
9 |
10 | ## 🛠️ Development Setup
11 |
12 | ### 1. Clone the repository
13 |
14 | ```shell
15 | git clone https://github.com/zarifpour/zed-env
16 | ```
17 |
18 | ### 2. Uninstall the existing extension
19 |
20 | If you have the existing extension installed, you need to uninstall it before installing the development version.
21 |
22 | ### 3. Load the extension
23 |
24 | - Open `zed: extensions`.
25 | - Click `Install Dev Extension`.
26 | - Select the `zed-env` directory.
27 |
28 | ### 4. Rebuild the extension as needed
29 |
30 | As you make changes to the extension, you may need to rebuild it. To do so:
31 |
32 | - Open `zed: extensions`.
33 | - Click the `Rebuild` button next to the extension.
34 |
35 | ## 🎸 Contributing
36 |
37 | Contributions are welcome!
38 |
39 | To contribute:
40 |
41 | 1. Fork the repo and create a new branch.
42 | 2. Make changes and test them.
43 | 3. Submit a pull request with a clear description.
44 |
45 | Check open issues for areas needing improvement. Thanks for helping improve Solidity support in Zed!
46 |
47 |
48 |
49 |
50 |
51 | ## 🏆 Acknowledgments
52 |
53 | - [@EpocSquadron](https://github.com/EpocSquadron) for providing the [tree-sitter-dotenv](https://github.com/EpocSquadron/tree-sitter-dotenv) repository.
54 |
55 | ---
56 |
57 |