ThePrimeagen / ThePrimeagen/init.lua
W112: mutating non-standard global variable 'vim'
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4k
- Forks
- 680
- PR merge metrics
- No merged PRs in 30d
Description
I am having problem. I am getting this error. If I have a file called init.lua in ~/.config/nvim/ and if I add few basic configs like
vim.g.mapleader = " "
vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.termguicolors = true
and so on...
I am not seeing the effect. Probably because of this warning. But this is a warning right? It should no affect anyway right? Moreover how to handle this warning?
Note: I am trying to gradually build the neovim configs.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ~/.config/nvim/init.lua example and determine which tool emits W112 for the listed settings. Reproduce the warning, then verify whether it affects the configuration and document the appropriate way to handle it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100