diff options
| author | kylo252 <[email protected]> | 2022-09-12 18:43:09 +0200 | 
|---|---|---|
| committer | kylo252 <[email protected]> | 2022-09-12 18:43:09 +0200 | 
| commit | e4a5fe97abe500bbbe78fb137d57a59f558da05a (patch) | |
| tree | 5605d7453816d2c14b75a37a6cfa2d3ba18f89ed /lua/lvim/lsp | |
| parent | 824b2d1ef091f173503ebe537aef15a08085787f (diff) | |
| parent | 7535f4eff9ca70dfe73db4a099d509590aa07ade (diff) | |
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'lua/lvim/lsp')
| -rw-r--r-- | lua/lvim/lsp/providers/sumneko_lua.lua | 34 | 
1 files changed, 17 insertions, 17 deletions
| diff --git a/lua/lvim/lsp/providers/sumneko_lua.lua b/lua/lvim/lsp/providers/sumneko_lua.lua index fa0d2d31..6cd78157 100644 --- a/lua/lvim/lsp/providers/sumneko_lua.lua +++ b/lua/lvim/lsp/providers/sumneko_lua.lua @@ -1,3 +1,19 @@ +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" }, +  }, +  override = nil, -- function(root_dir, options) end, +} + +local lua_dev_loaded, lua_dev = pcall(require, "lua-dev") +if lua_dev_loaded then +  lua_dev.setup(dev_opts) +end +  local opts = {    settings = {      Lua = { @@ -15,20 +31,4 @@ local opts = {    },  } -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) +return opts | 
