neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit c0beb8173fe2f8a8f71cd5a3a6cdfed145a1d973
parent 832459219b4cbf3151e48b43187f1ab0c94ea285
Author: Lewis Russell <lewis6991@gmail.com>
Date:   Mon,  7 Aug 2023 16:27:53 +0100

feat: add .luarc.json (#24592)


Diffstat:
M.gitignore | 1-
A.luarc.json | 28++++++++++++++++++++++++++++
MCONTRIBUTING.md | 6------
Dcontrib/luarc.json | 31-------------------------------
Mruntime/lua/vim/_meta.lua | 4++++
5 files changed, 32 insertions(+), 38 deletions(-)

diff --git 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 @@ -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 @@ -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 @@ -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 @@ -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')