summaryrefslogtreecommitdiff
path: root/fnl/plugins
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2026-04-16 14:55:11 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2026-04-16 14:55:11 +0200
commit83a7f3505a441f1c152229d50a3d6011951a82fc (patch)
treeae2587b570fe975ac630f91d4e21d36680d919f2 /fnl/plugins
parent9b57b887676d7a86936e67d4a8c0bd1d9775ee62 (diff)
Update
Diffstat (limited to 'fnl/plugins')
-rw-r--r--fnl/plugins/compile-mode.fnl20
-rw-r--r--fnl/plugins/leap.fnl1
2 files changed, 21 insertions, 0 deletions
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 :<m-c> 2 :<cmd>Compile<cr> :desc :Compile}
+ {1 :<m-C> 2 :<cmd>Recompile<cr> :desc :Recompile}
+ {1 "]e" 2 :<cmd>NextError<cr> :desc "Next compile error"}
+ {1 "[e" 2 :<cmd>PrevError<cr> :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/fnl/plugins/leap.fnl b/fnl/plugins/leap.fnl
index 3c846c5..397b873 100644
--- a/fnl/plugins/leap.fnl
+++ b/fnl/plugins/leap.fnl
@@ -40,6 +40,7 @@
(vim.keymap.set [:n] :gs "<Plug>(leap-from-window)")))
{:url "https://codeberg.org/andyg/leap.nvim"
+:name :leap.nvim
: dependencies
:event :VeryLazy
: config}