aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-08-18 13:16:51 +0800
committerGitHub <noreply@github.com>2022-08-18 13:16:51 +0800
commit9de08d0afee4b241011dce336b5bd1d2818f8730 (patch)
treeff82b5c0e0ecafb98e1329929d10dc108cfe88e5
parent64a7a23309e272bccf0e1009cd90eda72344b611 (diff)
parentd5b7584e6832ac68d279f2c9e7e7208a4b6e639d (diff)
Merge pull request #66 from jdhao/lsp
add config dir to workspace.library for lua lsp
-rw-r--r--lua/config/lsp.lua5
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,
},