You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using vim-dotenv to load database connection strings from a .env file that exists directly in my home directory (~/.env). The problem I am having is that it seems like this plugin only recognizes the env vars sourced by vim-dotenv if they are sourced automatically (when vim starts). If I source more env vars interactively with :Dotenv {dir} (from vim-dotenv), the connections don't show up when I do :DBUI.
The reason I need to do this is because vim-dotenv seems to only source the first .env file that it finds up the directory tree. So if I am in a project with its own directory (that exists in my home directory) that has its own .env file, the ~/.env file does not get sourced (and doesn't show up when I do :DBUI).
Is there anyway to make this work? My goal is to call something in my .vimrc that manually sources ~/.env directly on vim startup, that way I can always call :DBUI and see all my connections (even if I didn't open a file directly -- side note, why do the env vars for connections not work properly if you don't actually open a file with vim?)
Thanks for any help, great plugin by the way -- surprised it is not more popular.
The text was updated successfully, but these errors were encountered:
I am using vim-dotenv to load database connection strings from a
.env
file that exists directly in my home directory (~/.env). The problem I am having is that it seems like this plugin only recognizes the env vars sourced by vim-dotenv if they are sourced automatically (when vim starts). If I source more env vars interactively with:Dotenv {dir}
(from vim-dotenv), the connections don't show up when I do:DBUI
.The reason I need to do this is because vim-dotenv seems to only source the first
.env
file that it finds up the directory tree. So if I am in a project with its own directory (that exists in my home directory) that has its own.env
file, the~/.env
file does not get sourced (and doesn't show up when I do:DBUI
).Is there anyway to make this work? My goal is to call something in my
.vimrc
that manually sources~/.env
directly on vim startup, that way I can always call:DBUI
and see all my connections (even if I didn't open a file directly -- side note, why do the env vars for connections not work properly if you don't actually open a file with vim?)Thanks for any help, great plugin by the way -- surprised it is not more popular.
The text was updated successfully, but these errors were encountered: