Closed atusy closed 11 months ago
The changes involve the introduction of a new configuration option g:denops#deno_dir
across several Vim script files. This option allows users to specify a custom directory for Deno's cache, enhancing flexibility and control over the Deno environment within the Denops plugin. The update includes setting the environment variable DENO_DIR
based on this configuration and documenting the new option for users.
File Path | Change Summary |
---|---|
autoload/denops.vim |
Added denops#deno_dir configuration setting with default v:null . |
autoload/denops/.../proc.vim |
Initialized l:env to hold environment variables; conditionally set DENO_DIR based on g:denops#deno_dir . |
doc/denops.txt |
Documented new g:denops#deno_dir variable and its default value. |
🐇✨ In the land of code and vim,
A rabbit hopped, settingDENO_DIR
on a whim.
With a flick of its ear, cache paths align,
"Now Deno can run with a home that's all mine!"
🌟📂
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
6c7ebef
) 92.59% compared to head (74abcb8
) 92.59%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
let $DENO_DIR = ...
affects Terminal-mode, so deno process outside denops might be affected.
This PR adds a complete isolation.
In the current implementation, denops shares the deno cache directory with system. This may lead slow startup of denops plugins when cache invalidates.
The typical invalidation occurs when the versions of deno are different among system and denops.
To improve the experience, I want to isolate deno version and cache directory for denops like below.
Summary by CodeRabbit
New Features
denops#deno_dir
to customize the Deno cache directory.Documentation
g:denops#deno_dir
variable and its usage.Bug Fixes
DENO_DIR
environment variable is set correctly based on user configuration.