0.0.22 • Published 5 months ago

coc-ecolog v0.0.22

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

coc-ecolog

Environment variable completion source for coc.nvim. This extension provides environment variable completion for multiple languages.

Prerequisites

Installation

  1. First, make sure you have coc.nvim installed and configured in your Neovim.

  2. Clone this repository:

    git clone https://github.com/yourusername/coc-ecolog.git
    cd coc-ecolog
  3. Install dependencies and build:

    npm install
    npm run build
  4. Create a symlink in your coc extensions directory:

    cd ~/.config/coc/extensions
    npm link /path/to/coc-ecolog
  5. Add the extension to your coc.nvim configuration:

    :CocInstall coc-ecolog

Features

  • Environment variable completion for multiple languages:

    • JavaScript/TypeScript (process.env)
    • Python (os.environ)
    • Ruby (ENV)
    • Go (os.Getenv, os.LookupEnv)
    • Rust (env::var, env::var_os)
    • Lua (os.getenv)
    • C# (Environment.GetEnvironmentVariable)
    • Shell scripts ($VAR, ${VAR})
  • Shows environment variable:

    • Type
    • Value (masked when appropriate using ecolog.nvim's shelter feature)
    • Source file
    • Comments (if available)

Configuration

Add this to your coc-settings.json:

{
  "ecolog.enable": true
}

You can open your coc-settings.json with:

:CocConfig

Development

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Build:
    npm run build
  4. For development, you can use:
    npm run watch

Debugging

If you encounter any issues:

  1. Check coc.nvim logs:

    :CocCommand workspace.showOutput
  2. Enable debug mode in coc-settings.json:

    {
      "ecolog.enable": true,
      "coc.preferences.extensionUpdateCheck": "daily"
    }

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

MIT

0.0.22

5 months ago

0.0.21

5 months ago

0.0.20

5 months ago

0.0.19

5 months ago

0.0.18

5 months ago

0.0.16

5 months ago

0.0.15

5 months ago

0.0.14

5 months ago

0.0.13

5 months ago

0.0.12

5 months ago

0.0.11

5 months ago

0.0.10

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago