mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
34 lines
865 B
Lua
34 lines
865 B
Lua
local opts = {
|
|
settings = {
|
|
Lua = {
|
|
diagnostics = {
|
|
globals = { "vim", "lvim" },
|
|
},
|
|
workspace = {
|
|
library = {
|
|
[require("lvim.utils").join_paths(get_runtime_dir(), "lvim", "lua")] = true,
|
|
},
|
|
maxPreload = 100000,
|
|
preloadFileSize = 10000,
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
local lua_dev_loaded, lua_dev = pcall(require, "lua-dev")
|
|
if not lua_dev_loaded then
|
|
return opts
|
|
end
|
|
|
|
local dev_opts = {
|
|
library = {
|
|
vimruntime = true, -- runtime path
|
|
types = true, -- full signature, docs and completion of vim.api, vim.treesitter, vim.lsp and others
|
|
-- plugins = true, -- installed opt or start plugins in packpath
|
|
-- you can also specify the list of plugins to make available as a workspace library
|
|
plugins = { "plenary.nvim" },
|
|
},
|
|
lspconfig = opts,
|
|
}
|
|
|
|
return lua_dev.setup(dev_opts)
|