summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/providers/sumneko_lua.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/lsp/providers/sumneko_lua.lua')
-rw-r--r--.config/nvim/lua/lsp/providers/sumneko_lua.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/nvim/lua/lsp/providers/sumneko_lua.lua b/.config/nvim/lua/lsp/providers/sumneko_lua.lua
new file mode 100644
index 0000000..4fee1fd
--- /dev/null
+++ b/.config/nvim/lua/lsp/providers/sumneko_lua.lua
@@ -0,0 +1,19 @@
+local opts = {
+ settings = {
+ Lua = {
+ diagnostics = {
+ globals = { "vim", "lvim" },
+ },
+ workspace = {
+ library = {
+ [require("utils").join_paths(get_runtime_dir(), "lvim", "lua")] = true,
+ [vim.fn.expand "$VIMRUNTIME/lua"] = true,
+ [vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true,
+ },
+ maxPreload = 100000,
+ preloadFileSize = 10000,
+ },
+ },
+ },
+}
+return opts