diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2023-12-30 17:58:55 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2023-12-30 17:58:55 -0600 |
commit | 17fb84781bbce51c40c4f89fc250dd00d55e4d9f (patch) | |
tree | 699a36d2f969161eeb5c69be9123915191d3bfad | |
parent | fef1dc068e6da87aaec65363a4806b04557ca8aa (diff) |
feat: lua now sources local libs
-rw-r--r-- | lua/plugins/lspconfig.lua | 10 |
1 files changed, 8 insertions, 2 deletions
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', + } + }, }, } } |