From 17fb84781bbce51c40c4f89fc250dd00d55e4d9f Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 30 Dec 2023 17:58:55 -0600 Subject: feat: lua now sources local libs --- lua/plugins/lspconfig.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lua/plugins') diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua index 1768ea3..219e3ca 100644 --- a/lua/plugins/lspconfig.lua +++ b/lua/plugins/lspconfig.lua @@ -12,11 +12,17 @@ local servers = { }, -- jedi_language_server = {}, pyright = {}, - -- probably will need fixing by checking https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lua_ls lua_ls = { Lua = { - workspace = { checkThirdParty = false }, telemetry = { enable = false }, + workspace = { + checkThirdParty = false, + library = { + vim.env.VIMRUNTIME, + -- need to check if there is a better directory + os.getenv('HOME') .. '/.local/lib/lua', + } + }, }, } } -- cgit v1.2.3-70-g09d2