Setting custom enviornment variables to Nixvim? #3055
-
I have a program that I wanna run as my formatter that requires some environment variables for it. I got most of it down, but I'd like to seperate some variables to nixvim only. Is there a way I can assign them for nixvim only instead of assigning it to my shell directly? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You could set them up in your lua config with https://neovim.io/doc/user/lua.html#vim.env |
Beta Was this translation helpful? Give feedback.
-
I think it'd make sense to have an |
Beta Was this translation helpful? Give feedback.
-
Fixed in #3101! See the new |
Beta Was this translation helpful? Give feedback.
Fixed in #3101!
See the new
env
option: https://nix-community.github.io/nixvim/NeovimOptions/index.html#env