1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

add config dir to workspace.library for lua lsp

This commit is contained in:
jdhao 2022-08-18 13:15:20 +08:00
parent 64a7a23309
commit d5b7584e68

View File

@ -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,
},