coc-ecolog
v0.0.22
Published
Environment variable completion for coc.nvim, powered by ecolog.nvim
Maintainers
Readme
coc-ecolog
Environment variable completion source for coc.nvim. This extension provides environment variable completion for multiple languages.
Prerequisites
- Node.js (>= 14.0.0)
- coc.nvim (>= 0.0.80)
- ecolog.nvim
Installation
First, make sure you have coc.nvim installed and configured in your Neovim.
Clone this repository:
git clone https://github.com/yourusername/coc-ecolog.git cd coc-ecologInstall dependencies and build:
npm install npm run buildCreate a symlink in your coc extensions directory:
cd ~/.config/coc/extensions npm link /path/to/coc-ecologAdd 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})
- JavaScript/TypeScript (
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:
:CocConfigDevelopment
- Clone this repository
- Install dependencies:
npm install - Build:
npm run build - For development, you can use:
npm run watch
Debugging
If you encounter any issues:
Check coc.nvim logs:
:CocCommand workspace.showOutputEnable debug mode in coc-settings.json:
{ "ecolog.enable": true, "coc.preferences.extensionUpdateCheck": "daily" }
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
MIT
