Skip to content

Commit 19a9c61

Browse files
committed
fix(julia): fix infinite recursion
1 parent 1b38e78 commit 19a9c61

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

lua/astrocommunity/pack/julia/init.lua

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,11 @@ return {
128128
},
129129
})
130130

131-
if julials_manually_setup() then
132-
opts.config.julials.on_attach = astrocore.patch_func(
133-
opts.config.julials.on_attach,
134-
function(orig, client, bufnr)
135-
local environment = vim.tbl_get(client, "settings", "julia", "environmentPath")
136-
if environment then client.notify("julia/activateenvironment", { envPath = environment }) end
137-
orig(client, bufnr)
138-
end
139-
)
140-
end
131+
opts.config.julials.on_attach = astrocore.patch_func(opts.config.julials.on_attach, function(orig, client, bufnr)
132+
local environment = vim.tbl_get(client, "settings", "julia", "environmentPath")
133+
if environment then client.notify("julia/activateenvironment", { envPath = environment }) end
134+
orig(client, bufnr)
135+
end)
141136

142137
return opts
143138
end,

0 commit comments

Comments
 (0)