diff options
| author | Dheepak Krishnamurthy <me@kdheepak.com> | 2020-06-08 00:30:08 -0600 |
|---|---|---|
| committer | Dheepak Krishnamurthy <me@kdheepak.com> | 2020-06-08 21:32:50 -0600 |
| commit | 763afe406f00791870683226665144924c18759d (patch) | |
| tree | 2b89f4fdd1bdd3a92926fb90a89d10b829ef6d59 /lua | |
| parent | Fix julials configuration (diff) | |
| download | nvim-lspconfig-763afe406f00791870683226665144924c18759d.tar nvim-lspconfig-763afe406f00791870683226665144924c18759d.tar.gz nvim-lspconfig-763afe406f00791870683226665144924c18759d.tar.bz2 nvim-lspconfig-763afe406f00791870683226665144924c18759d.tar.lz nvim-lspconfig-763afe406f00791870683226665144924c18759d.tar.xz nvim-lspconfig-763afe406f00791870683226665144924c18759d.tar.zst nvim-lspconfig-763afe406f00791870683226665144924c18759d.zip | |
Use Base.active_project() instead
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim_lsp/julials.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/nvim_lsp/julials.lua b/lua/nvim_lsp/julials.lua index b821c283..f202a7e0 100644 --- a/lua/nvim_lsp/julials.lua +++ b/lua/nvim_lsp/julials.lua @@ -1,6 +1,8 @@ local configs = require 'nvim_lsp/configs' local util = require 'nvim_lsp/util' +print(vim.fn.expand('<sfile>:p:h')) + configs.julials = { default_config = { cmd = { @@ -9,7 +11,7 @@ configs.julials = { Pkg.instantiate() using LanguageServer; using SymbolServer; depot_path = get(ENV, "JULIA_DEPOT_PATH", "") - project_path = dirname(Pkg.Types.Context().env.project_file) + project_path = Base.active_project() # Make sure that we only load packages from this environment specifically. empty!(LOAD_PATH) push!(LOAD_PATH, "@") |
