diff options
| author | kylo252 <[email protected]> | 2021-10-03 16:13:46 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-03 16:13:46 +0200 | 
| commit | d01ba08eaec1640ac2d038893525b3ba0af25813 (patch) | |
| tree | 5edf2f5a12cedacb32f0c5d45ec2d999dacb99cd /lua/lsp/providers/sumneko_lua.lua | |
| parent | 3e1cd1ec235404ae96ed2d0756729cf44ae48f3e (diff) | |
refactor: auto-generate language configuration (#1584)
Refactor the monolithic `lvim.lang` design into a more modular approach.
IMPORTANT: run `:LvimUpdate` in order to generate the new ftplugin template files.
Diffstat (limited to 'lua/lsp/providers/sumneko_lua.lua')
| -rw-r--r-- | lua/lsp/providers/sumneko_lua.lua | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/lua/lsp/providers/sumneko_lua.lua b/lua/lsp/providers/sumneko_lua.lua new file mode 100644 index 00000000..4fee1fd1 --- /dev/null +++ b/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 | 
