+custom ocaml module
This ocaml module has proper lsp support, and has the bindings I require regularly. I use utop to REPL my code, with bindings to send parts of my code to UTOP
This commit is contained in:
@@ -340,15 +340,6 @@ each of the unit tests ran."
|
|||||||
(after! (haskell-mode dante)
|
(after! (haskell-mode dante)
|
||||||
(setq dante-repl-command-line '("stack" "ghci")))
|
(setq dante-repl-command-line '("stack" "ghci")))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Ocaml
|
|
||||||
Added ocaml-lsp support.
|
|
||||||
#+BEGIN_SRC elisp
|
|
||||||
(after! lsp
|
|
||||||
(lsp-register-client
|
|
||||||
(make-lsp-client :new-connection (lsp-stdio-connection "ocamllsp")
|
|
||||||
:major-modes '(tuareg-mode)
|
|
||||||
:server-id 'ocaml-lsp)))
|
|
||||||
#+END_SRC
|
|
||||||
** FSharp
|
** FSharp
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(after! fsharp
|
(after! fsharp
|
||||||
|
|||||||
@@ -52,7 +52,3 @@ Auto complete is essential to make the ultimate IDE experience™. Thus, company
|
|||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(package! company-arduino)
|
(package! company-arduino)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Ocaml
|
|
||||||
#+BEGIN_SRC elisp
|
|
||||||
(package! tuareg)
|
|
||||||
#+END_SRC
|
|
||||||
|
|||||||
20
doom.d/modules/private/ocaml/config.el
Normal file
20
doom.d/modules/private/ocaml/config.el
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
;;; private/ocaml/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(use-package! utop
|
||||||
|
:config
|
||||||
|
(map!
|
||||||
|
:localleader
|
||||||
|
:map tuareg-mode-map
|
||||||
|
:desc "Repl" "c" #'utop
|
||||||
|
(:prefix ("e" . "eval")
|
||||||
|
:desc "Buffer" "b" #'utop-eval-buffer
|
||||||
|
:desc "Region" "r" #'utop-eval-region)))
|
||||||
|
|
||||||
|
|
||||||
|
(when (featurep! +lsp)
|
||||||
|
(after! lsp
|
||||||
|
(lsp-register-client
|
||||||
|
(make-lsp-client :new-connection (lsp-stdio-connection "ocamllsp")
|
||||||
|
:major-modes '(tuareg-mode)
|
||||||
|
:server-id 'ocaml-lsp))
|
||||||
|
(add-hook 'tuareg-mode-hook #'(lambda () (lsp-mode)))))
|
||||||
6
doom.d/modules/private/ocaml/packages.el
Normal file
6
doom.d/modules/private/ocaml/packages.el
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
;; -*- no-byte-compile: t; -*-
|
||||||
|
;;; private/ocaml/packages.el
|
||||||
|
|
||||||
|
|
||||||
|
(package! tuareg)
|
||||||
|
(package! utop)
|
||||||
Reference in New Issue
Block a user