From 1d776d197fdf733174c968ec645289f8e5852b4c Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Mon, 16 Mar 2026 23:08:12 +0100 Subject: add compile-mode --- fnl/plugins/compile-mode.fnl | 20 ++++++++++++++++++++ lazy-lock.json | 1 + 2 files changed, 21 insertions(+) create mode 100644 fnl/plugins/compile-mode.fnl diff --git a/fnl/plugins/compile-mode.fnl b/fnl/plugins/compile-mode.fnl new file mode 100644 index 0000000..b8d9c53 --- /dev/null +++ b/fnl/plugins/compile-mode.fnl @@ -0,0 +1,20 @@ +(local keys + [{1 : 2 :Compile :desc :Compile} + {1 : 2 :Recompile :desc :Recompile} + {1 "]e" 2 :NextError :desc "Next compile error"} + {1 "[e" 2 :PrevError :desc "Prev compile error"}]) + +(λ config [] + (set vim.g.compile_mode {:default_command {:ocaml "dune build"} + :bang_expansion true + :recompile_no_fail true + :auto_jump_to_first_error false + :ask_about_save true + :ask_to_interrupt true + :auto_scroll true})) + +{1 :ej-shafran/compile-mode.nvim + :version :^5.0.0 + :dependencies [:nvim-lua/plenary.nvim] + : config + : keys} diff --git a/lazy-lock.json b/lazy-lock.json index a8fd5b2..6587ba5 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -2,6 +2,7 @@ "LuaSnip": { "branch": "master", "commit": "5a1e39223db9a0498024a77b8441169d260c8c25" }, "alpha-nvim": { "branch": "main", "commit": "a9d8fb72213c8b461e791409e7feabb74eb6ce73" }, "blink.cmp": { "branch": "main", "commit": "4b18c32adef2898f95cdef6192cbd5796c1a332d" }, + "compile-mode.nvim": { "branch": "main", "commit": "6b41499bd782be2c213011072ce0f0eb9f7b78a2" }, "conform.nvim": { "branch": "master", "commit": "c2526f1cde528a66e086ab1668e996d162c75f4f" }, "dial.nvim": { "branch": "master", "commit": "f2634758455cfa52a8acea6f142dcd6271a1bf57" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, -- cgit v1.2.3-70-g09d2