fix(neovim): check for NH_FLAKE env

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-05-04 20:42:06 -03:00
parent 746e2793b0
commit 93fb8227d5
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -9,7 +9,7 @@ return {
---@param opts AstroLSPOpts
---@return AstroLSPOpts
opts = function(_, opts)
local system_flake_path = vim.fn.getenv "FLAKE" or error "FLAKE environment variable must be set."
local system_flake_path = os.getenv "FLAKE" or os.getenv "NH_FLAKE" or error "FLAKE environment variable must be set."
local hostname = vim.fn.hostname()
---@type AstroLSPOpts