diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2024-12-06 19:02:06 +0100 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2024-12-06 19:02:06 +0100 |
| commit | e35799c463c125d5f8558939f65f12bd3101c4c7 (patch) | |
| tree | bb7a0d63c1c9256f69b2b0a32bcd150642b06198 | |
| parent | 08ae423371b8abcf0a4b66bed4ba56d51a93a8bf (diff) | |
OCaml ftplugin configuration
| -rw-r--r-- | config/nvim/ftplugin/ocaml.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config/nvim/ftplugin/ocaml.lua b/config/nvim/ftplugin/ocaml.lua new file mode 100644 index 0000000..f541d74 --- /dev/null +++ b/config/nvim/ftplugin/ocaml.lua @@ -0,0 +1,16 @@ +local set = require("utils.set") +local keys = require("which-key") + +keys.add({ + buffer = vim.api.nvim_get_current_buf(), + {"<leader>d", group = "dune"}, + {"<leader>dF", "<cmd>!dune fmt<cr>", desc = "Format Project"}, + {"<leader>dT", "<cmd>!dune test<cr>", desc = "Run Project Testt"}, + {"<leader>db", "<cmd>!dune build<cr>", desc = "Build Project"}, +}) + +set.locl { + expandtab = true, + shiftwidth = 2, + tabstop = 2, +} |
