diff options
| author | jdhao <jdhao@hotmail.com> | 2022-08-18 13:15:20 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-08-18 13:15:20 +0800 |
| commit | d5b7584e6832ac68d279f2c9e7e7208a4b6e639d (patch) | |
| tree | ff82b5c0e0ecafb98e1329929d10dc108cfe88e5 /lua | |
| parent | 64a7a23309e272bccf0e1009cd90eda72344b611 (diff) | |
add config dir to workspace.library for lua lsp
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/lsp.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index 7736ae6..098303f 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -166,7 +166,10 @@ if utils.executable("lua-language-server") then -- Make the server aware of Neovim runtime files, -- see also https://github.com/sumneko/lua-language-server/wiki/Libraries#link-to-workspace . -- Lua-dev.nvim also has similar settings for sumneko lua, https://github.com/folke/lua-dev.nvim/blob/main/lua/lua-dev/sumneko.lua . - library = { fn.stdpath('data') .. "/site/pack/packer/opt/emmylua-nvim" }, + library = { + fn.stdpath('data') .. "/site/pack/packer/opt/emmylua-nvim", + fn.stdpath('config'), + }, maxPreload = 2000, preloadFileSize = 50000, }, |
