Warning: `vim.validate` is deprecated

Open
#82 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
52/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
lua, neovim
Domain
tooling

Research direction

Start with lua/cmp_buffer/source.lua at line 34, where the traceback identifies the deprecated vim.validate call. Compare it with the replacement signature shown in the warning, then run checkhealth to confirm the warning no longer appears.

Written by the indexing model from the issue text.

Description

I have following stack when running checkhealth:

- ⚠️ WARNING vim.validate is deprecated. Feature will be removed in Nvim 1.0
  - ADVICE:
    - use vim.validate(name, value, validator, optional_or_msg) instead.
    - stack traceback:
        $HOME/.local/share/nvim/lazy/cmp-buffer/lua/cmp_buffer/source.lua:34
        $HOME/.local/share/nvim/lazy/cmp-buffer/lua/cmp_buffer/source.lua:45
        $HOME/.local/share/nvim/lazy/nvim-cmp/lua/cmp/source.lua:239
        $HOME/.local/share/nvim/lazy/nvim-cmp/lua/cmp/source.lua:283
        $HOME/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:308
        $HOME/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:178
        $HOME/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:238
        $HOME/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:170
        $HOME/.local/share/nvim/lazy/nvim-cmp/lua/cmp/init.lua:372
        $HOME/.local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:53
        $HOME/.local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:14

Dominant language
Lua
Stars
672
Forks
47
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hrsh7th/cmp-buffer

All issues in hrsh7th/cmp-buffer

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.