aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2021-12-01 12:09:50 -0700
committerGitHub <noreply@github.com>2021-12-01 12:09:50 -0700
commit73b35ef10f95536874bfa147c44f62c4fea08f0f (patch)
tree6446e222128bbf4cfa77d0c97a6adfcffd5e002f /contrib
parent99f6260f84a8ef94495c831155d98c330078e0ad (diff)
downloadrneovim-73b35ef10f95536874bfa147c44f62c4fea08f0f.tar.gz
rneovim-73b35ef10f95536874bfa147c44f62c4fea08f0f.tar.bz2
rneovim-73b35ef10f95536874bfa147c44f62c4fea08f0f.zip
chore: add default luarc.json for Lua development (#16487)
The Sumneko Lua language server has matured quite a bit and many Neovim developers use it while working on Neovim. Having a default configuration for Neovim development is a nice convenience (and dovetails well with the auto-generated compile_command.json for C development). The file is shipped under `contrib` and users can make use of it by symlinking to `.luarc.json` in the project root.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/luarc.json23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/luarc.json b/contrib/luarc.json
new file mode 100644
index 0000000000..770b023ac6
--- /dev/null
+++ b/contrib/luarc.json
@@ -0,0 +1,23 @@
+{
+ "runtime.version": "LuaJIT",
+ "diagnostics": {
+ "enable": true,
+ "globals": [
+ "vim",
+ "describe",
+ "it",
+ "before_each",
+ "after_each",
+ "setup",
+ "teardown"
+ ]
+ },
+ "workspace": {
+ "library": {
+ "runtime/lua": true
+ },
+ "maxPreload": 2000,
+ "preloadFileSize": 1000
+ },
+ "telemetry.enable": false
+}