summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/lsp/settings/sumneko_lua.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/lua/plugins/lsp/settings/sumneko_lua.lua b/lua/plugins/lsp/settings/sumneko_lua.lua
new file mode 100644
index 0000000..d7957c1
--- /dev/null
+++ b/lua/plugins/lsp/settings/sumneko_lua.lua
@@ -0,0 +1,18 @@
+-- Config for a Lua language server.
+
+return {
+ settings = {
+
+ Lua = {
+ diagnostics = {
+ globals = { "vim" },
+ },
+ workspace = {
+ library = {
+ [vim.fn.expand("$VIMRUNTIME/lua")] = true,
+ [vim.fn.stdpath("config") .. "/lua"] = true,
+ },
+ },
+ },
+ },
+}