From 0f24d6d470d5fafdfbfae73cb44acd83a9ff604e Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 11 Jan 2022 21:39:53 +0100 Subject: Add sumneko lua config --- lua/plugins/lsp/settings/sumneko_lua.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lua/plugins/lsp/settings/sumneko_lua.lua (limited to 'lua/plugins') 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, + }, + }, + }, + }, +} -- cgit v1.2.3-70-g09d2