aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-08-07 16:27:53 +0100
committerGitHub <noreply@github.com>2023-08-07 16:27:53 +0100
commitc0beb8173fe2f8a8f71cd5a3a6cdfed145a1d973 (patch)
treeea9934b255ffffea99de164302297b2b271a6c06
parent832459219b4cbf3151e48b43187f1ab0c94ea285 (diff)
downloadrneovim-c0beb8173fe2f8a8f71cd5a3a6cdfed145a1d973.tar.gz
rneovim-c0beb8173fe2f8a8f71cd5a3a6cdfed145a1d973.tar.bz2
rneovim-c0beb8173fe2f8a8f71cd5a3a6cdfed145a1d973.zip
feat: add .luarc.json (#24592)
-rw-r--r--.gitignore1
-rw-r--r--.luarc.json28
-rw-r--r--CONTRIBUTING.md6
-rw-r--r--contrib/luarc.json31
-rw-r--r--runtime/lua/vim/_meta.lua4
5 files changed, 32 insertions, 38 deletions
diff --git a/.gitignore b/.gitignore
index d04b91dbb7..f1661e1f00 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,7 +2,6 @@
/.direnv/
/venv/
compile_commands.json
-/.luarc.json
/.envrc
# IDEs
diff --git a/.luarc.json b/.luarc.json
new file mode 100644
index 0000000000..12696131aa
--- /dev/null
+++ b/.luarc.json
@@ -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"
+ ]
+ }
+}
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 18603321fb..bed2867a56 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -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
diff --git a/contrib/luarc.json b/contrib/luarc.json
deleted file mode 100644
index 31126e4215..0000000000
--- a/contrib/luarc.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "runtime.version": "LuaJIT",
- "diagnostics": {
- "enable": true,
- "globals": [
- "vim",
- "describe",
- "pending",
- "it",
- "before_each",
- "after_each",
- "setup",
- "teardown",
- "finally",
- "lfs"
- ],
- "disable": [
- "luadoc-miss-see-name"
- ]
- },
- "workspace": {
- "library": [
- "runtime/lua",
- "${3rd}/lfs/library"
- ],
- "checkThirdParty": false,
- "maxPreload": 2000,
- "preloadFileSize": 1000
- },
- "telemetry.enable": false
-}
diff --git a/runtime/lua/vim/_meta.lua b/runtime/lua/vim/_meta.lua
index 839830294e..5e4f390ca3 100644
--- a/runtime/lua/vim/_meta.lua
+++ b/runtime/lua/vim/_meta.lua
@@ -1,5 +1,8 @@
--- @meta
+---@type uv
+vim.uv = ...
+
--- The following modules are loaded specially in _init_packages.lua
vim.F = require('vim.F')
@@ -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')