-
Notifications
You must be signed in to change notification settings - Fork 57
fix: searchpair & searchpairpos param types #130
Conversation
Those types are auto-generated, so I can't just merge this. There is a mechanism to override generated types though. Have a look at https://github.com/folke/neodev.nvim/blob/main/types/override/vim.fn.lua |
I'm not sure how to locally build to test the changes, and would like some help if possible. (The following list is taken from BUILD.md) ✅ 1. Clone the neovim repo somewhere on your system
|
Hi! I've just updated the build instructions. |
Thanks for updating the build instructions. ✅ 1. Clone the neovim repo somewhere on your system
✅ 4. Open the file
P.S. specifically, the *.mpack files I built from neovim and copied over are:
|
@nguyenvukhang Hey, thought I'd chime in, I recently did a PR with new overrides and ran into some of your issues. I ultimately ignored build.md and checked what the GitHub workflow was doing for generating and copying the mpack, which then worked. But it still did not update any types when running the What I had to do was change After this change, and then running I guess the |
Thanks for the help @laytan! For completeness, here's the steps to take to go from fresh clone to build: git clone https://github.com/folke/neodev.nvim.git
cd neodev.nvim
mkdir data
git clone --depth=1 https://github.com/neovim/neovim.git ./data/neovim
cd ./data/neovim
make all # build neovim but don't install it
python3 ./scripts/gen_vimdoc.py # generate the *.mpack files
# back in the root of neodev.nvim
cd ../..
cp ./data/neovim/runtime/doc/*.mpack ./data/
nvim -u NONE -E -R --headless \
--cmd "set rtp^=." --cmd "packloadall" \
--cmd "luafile lua/neodev/build/init.lua" --cmd q # taken from the types workflow and @folke I've reduced the changes to just inside of |
thanks! |
The param types can be read off the examples above the function declaration.