commit 8894efc978d9829c5d8d0494b700017ed1c8872e
parent 38da97eebbdc95549d3895cb6f30c423b9d70197
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date: Fri, 10 Jun 2022 15:31:17 +0200
feat(lsp/lua): better configure lua stdlib
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lua/lsp_config.lua b/lua/lsp_config.lua
@@ -246,10 +246,8 @@ local lsps = {
},
workspace = {
-- Make the server aware of Neovim runtime files
- library = {
- [vim.fn.expand('$VIMRUNTIME/lua')] = true,
- [vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true,
- },
+ library = vim.api.nvim_get_runtime_file('', true),
+ checkThirdParty = false,
},
-- Do not send telemetry data containing a randomized but unique identifier
telemetry = {