summaryrefslogtreecommitdiff
path: root/lua/plugins/lsp
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-11 21:39:53 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-11 21:39:53 +0100
commit0f24d6d470d5fafdfbfae73cb44acd83a9ff604e (patch)
tree4d6642b2d749e72a136da186cb81584e3c4bb87b /lua/plugins/lsp
parentea5453ecb0a9dec74ab445893df1f41c29411ad1 (diff)
Add sumneko lua config
Diffstat (limited to 'lua/plugins/lsp')
-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,
+ },
+ },
+ },
+ },
+}