Fennel files in .config/nvim/plugin/ folder are sourced twice with Hotpot v2
Hello there! I just adapted my config to nvim 0.12 and Hotpot v2.0, and noticed that some files are sourced twice during initialization. In particular any fennel file inside `plugin/`. This does not happen for lua files.
Below is an MVP reproducing this problem using `NVIM_APPNAME=hotpot-test`.
The config folder's tree structure:
```
/home/iago/.config/hotpot-test
├── init.lua
├── nvim-pack-lock.json
├── plugin
│ └── hi.fnl
```
The content of `init.lua` is just a vim.pack call, taken from the project's Readme.
```
vim.pack.add({
{src = "https://github.com/rktjmp/hotpot.nvim",
version = vim.version.range("^2.0.0")}
}, {load=true})
```
The content of `plugin/hi.fnl` is just a print:
```
(print "hello there!")
```
When running neovim with this config (i.e. `NVIM_APPNAME=hotpot-test nvim`), the message appears twice as
```
hello there!
hello there!
Press ENTER or type command to continue
```
If it helps, this is the output of `NVIM_APPNAME=hotpot-test nvim -V1 --version`:
```
NVIM v0.12.0
Build type: None
LuaJIT 2.1.1748459687
Vim versions: 8.1, 8.2, 9.0, 9.1, 9.2
Compilation: /usr/lib/ccache/bin/cc -DNDEBUG -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -UNDEBUG -g -ffile-prefix-map=/builddir/neovim-0.12.0/build=. -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wno-unused-function -fsigned-char -fstack-protector-strong -Wno-conversion -fno-common -Wimplicit-fallthrough -fdiagnostics-color=always -Wno-free-nonheap-object -DHAVE_UNIBILIUM -DUNIT_TESTING -D_GNU_SOURCE -DUTF8PROC_STATIC -I/usr/include/luajit-2.1 -I/usr/include -I/builddir/neovim-0.12.0/build/src/nvim/auto -I/builddir/neovim-0.12.0/build/include -I/builddir/neovim-0.12.0/build/cmake.config -I/builddir/neovim-0.12.0/src
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
```
关闭于 2026-04-03 2 条评论