diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-11 21:39:53 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-11 21:39:53 +0100 |
commit | 0f24d6d470d5fafdfbfae73cb44acd83a9ff604e (patch) | |
tree | 4d6642b2d749e72a136da186cb81584e3c4bb87b /lua | |
parent | ea5453ecb0a9dec74ab445893df1f41c29411ad1 (diff) |
Add sumneko lua config
Diffstat (limited to 'lua')
-rw-r--r-- | lua/plugins/lsp/settings/sumneko_lua.lua | 18 |
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, + }, + }, + }, + }, +} |