--- ./src/nvim/os/stdpaths.c.orig	2022-09-30 19:19:51.775645300 +0000
+++ ./src/nvim/os/stdpaths.c	2022-09-30 19:20:49.755422449 +0000
@@ -51,8 +51,8 @@
   [kXDGCacheHome] = "~/.cache",
   [kXDGStateHome] = "~/.local/state",
   [kXDGRuntimeDir] = NULL,  // Decided by vim_mktempdir().
-  [kXDGConfigDirs] = "/etc/xdg/",
-  [kXDGDataDirs] = "/usr/local/share/:/usr/share/",
+  [kXDGConfigDirs] = "@TERMUX_PREFIX@/etc/xdg/",
+  [kXDGDataDirs] = "@TERMUX_PREFIX@/local/share/:@TERMUX_PREFIX@/share/",
 #endif
 };
 
