From 988141a255cfb5a70acdecf45d62d39366f61e29 Mon Sep 17 00:00:00 2001 From: xudyang1 <61672396+xudyang1@users.noreply.github.com> Date: Tue, 7 Jul 2026 01:25:12 -0400 Subject: [PATCH 1/3] fix(Makefile): detect bin of nightly nvim installed via scoop --- Makefile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 6497f49ea..d106f2d7a 100644 --- a/Makefile +++ b/Makefile @@ -80,19 +80,24 @@ else ifneq (,$(or $(findstring $(WINDOWS_NT),$(LUASNIP_DETECTED_OS)), $(findstri # If neovim is installed by scoop, only scoop/shims is exposed. We need to find original nvim/bin that contains lua51.dll # If neovim is installed by winget or other methods, nvim/bin is already included in PATH. -# `scoop prefix neovim` outputs either -# 1. C:\Users\MyUsername\scoop\apps\neovim\current -# 2. Could not find app path for 'neovim'. +# `scoop prefix neovim` outputs: +# found: stable: `C:\Users\MyUsername\scoop\apps\neovim\current` +# nightly or not found: `Could not find app path for 'neovim'.` +# `scoop which nvim` outputs: +# found: stable: `~\scoop\apps\neovim\current\bin\nvim.exe` or nightly: `~\scoop\apps\neovim-nightly\current\bin\nvim.exe` +# not found: `WARN 'nvim' not found, not a scoop shim, or a broken shim.` +# To include lua51.dll, we need: `C:/Users/MyUsername/scoop/apps/neovim[-nightly]/current/bin` +# # On Git Bash, scoop returns 0 and writes error to stdout in case 2. This is tracked by # @link: https://github.com/ScoopInstaller/Scoop/issues/6228 # The following code will also work if future scoop returns 1 for unknown `package` # -# On Git Bash, `which nvim` returns a Unix style path: `/c/Program Files/Git/bin/nvim` +# On Git Bash, `command -v nvim` returns a Unix style path: `/c/Program Files/Git/bin/nvim` # Always convert to `C:/Program Files/Git/bin/nvim` for powershell and pwsh users NEOVIM_BIN_PATH:=$(or \ - $(shell (scoop prefix neovim | grep -q '^[A-Z]:[/\\\\]') 2>/dev/null && \ - echo "$$(scoop prefix neovim)/bin" | sed 's/\\\\/\\//g';), \ - $(shell which nvim >/dev/null && dirname "$$(which nvim)" | sed 's/^\\/\\(.\\)\\//\\U\\1:\\//';) \ + $(shell (scoop which nvim | grep -q 'nvim.exe$$') && \ + scoop which nvim | sed -e 's|\\\\|/|g' -e "s|^~|$(subst \,/,$(USERPROFILE))|" -e 's|/nvim.exe$$||';), \ + $(shell dirname "$$(command -v nvim)" | sed 's/^\\/\\(.\\)\\//\\U\\1:\\//';) \ ) # Always double quote the absolute path as it may contain spaces LUA_LDLIBS?=$(if $(NEOVIM_BIN_PATH),-L'$(NEOVIM_BIN_PATH)' -llua51,) From c8ddddd19d9ff970ed23cfa50711020887bc5384 Mon Sep 17 00:00:00 2001 From: xudyang1 Date: Tue, 7 Jul 2026 05:29:39 +0000 Subject: [PATCH 2/3] Auto generate docs --- doc/luasnip.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/luasnip.txt b/doc/luasnip.txt index fc0239ff1..6f9b7c27c 100644 --- a/doc/luasnip.txt +++ b/doc/luasnip.txt @@ -1,4 +1,4 @@ -*luasnip.txt* For NeoVim 0.9-0.11 Last change: 2026 May 19 +*luasnip.txt* For NeoVim 0.9-0.11 Last change: 2026 July 07 ============================================================================== Table of Contents *luasnip-table-of-contents* From 559e77ed2e83a98ae70a77be8b0fe3eaa6e0338c Mon Sep 17 00:00:00 2001 From: xudyang1 <61672396+xudyang1@users.noreply.github.com> Date: Tue, 7 Jul 2026 11:54:11 -0400 Subject: [PATCH 3/3] fix: update spellwords to pass ci --- data/project-dictionary.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/project-dictionary.txt b/data/project-dictionary.txt index 96065a140..09f8a4d38 100644 --- a/data/project-dictionary.txt +++ b/data/project-dictionary.txt @@ -129,3 +129,6 @@ treesitter truthy varargs vsnip +FreeBSD +Makefile +gmake