feat: ocaml warns to eval opam env

This commit is contained in:
janishutz committed 2026-09-21 08:57:28 +02:00
1 parent 72d1980546
commit 3278adfe58
1 file changed
+8
+8
View File
@@ -11,6 +11,14 @@ lsp.config("ocamllsp", {
on_attach = on_attach, on_attach = on_attach,
}) })
vim.api.nvim_create_autocmd('BufReadPost', {
once = true,
pattern = "*.ml",
callback = function()
vim.notify("Make sure to `eval $(opam env)`", vim.log.levels.WARN)
end
})
-- ── Enable configs ─────────────────────────────────────────────── -- ── Enable configs ───────────────────────────────────────────────
local enable = vim.lsp.enable local enable = vim.lsp.enable
enable("ocamllsp") enable("ocamllsp")