feat: ocaml warns to eval opam env
This commit is contained in:
1 parent
72d1980546
commit
3278adfe58
1 file changed
+8
@@ -11,6 +11,14 @@ lsp.config("ocamllsp", {
|
||||
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 ───────────────────────────────────────────────
|
||||
local enable = vim.lsp.enable
|
||||
enable("ocamllsp")
|
||||
Reference in new issue
Block a user