Skip to content

Commit

Permalink
feat: add .luarc.json (neovim#24592)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 authored and clason committed Aug 8, 2023
1 parent 4e9fb85 commit 8882840
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 38 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/.direnv/
/venv/
compile_commands.json
/.luarc.json
/.envrc

# IDEs
Expand Down
28 changes: 28 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"runtime": {
"version": "LuaJIT"
},
"workspace": {
"library": [
"runtime/lua",
"${3rd}/busted/library",
"${3rd}/luv/library"
],
"checkThirdParty": false
},
"diagnostics": {
"groupFileStatus": {
"strict": "Opened",
"strong": "Opened"
},
"groupSeverity": {
"strong": "Warning",
"strict": "Warning"
},
"unusedLocalExclude": [ "_*" ],
"disable": [
"luadoc-miss-see-name"
]
}
}
6 changes: 0 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,6 @@ make lint
- Recommendation is to use **[clangd]**.
Can use the maintained config in [nvim-lspconfig/clangd].
- Explore the source code [on the web](https://sourcegraph.com/github.com/neovim/neovim).
- If using [lua-language-server], symlink `contrib/luarc.json` into the
project root:

```bash
ln -s contrib/luarc.json .luarc.json
```

### Includes

Expand Down
31 changes: 0 additions & 31 deletions contrib/luarc.json

This file was deleted.

4 changes: 4 additions & 0 deletions runtime/lua/vim/_meta.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
--- @meta

---@type uv
vim.uv = ...

--- The following modules are loaded specially in _init_packages.lua

vim.F = require('vim.F')
Expand All @@ -15,6 +18,7 @@ vim.loader = require('vim.loader')
vim.lsp = require('vim.lsp')
vim.re = require('vim.re')
vim.secure = require('vim.secure')
vim.treesitter = require('vim.treesitter')
vim.ui = require('vim.ui')
vim.version = require('vim.version')

Expand Down

0 comments on commit 8882840

Please sign in to comment.