Skip to content

Commit

Permalink
Add ocaml stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nj5m1n committed Dec 28, 2024
1 parent 4e8f3bd commit fc1c5db
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion files/nvim/fnl/plugin-config.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
(local servers [:bashls :cmake :jedi_language_server
:cssls :elmls :html :jsonls :clojure_lsp
:ts_ls :yamlls :hls :nil_ls
:fennel_language_server]) ; :typst_lsp])
:fennel_language_server :ocamllsp]) ; :typst_lsp])
(each [_ server (pairs servers)]
((. (. lspconfig server) :setup)
{:capabilities capabilities
Expand Down
1 change: 1 addition & 0 deletions nix/modules/nixos/all-languages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
./common-lisp.nix
./python.nix
./latex.nix
./ocaml.nix
];
}
1 change: 1 addition & 0 deletions nix/modules/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
common-lisp = import ./common-lisp.nix;
python = import ./python.nix;
latex = import ./latex.nix;
ocaml = import ./ocaml.nix;

# pandoc = import ./pandoc.nix;
steam = import ./steam.nix;
Expand Down
18 changes: 18 additions & 0 deletions nix/modules/nixos/ocaml.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{pkgs, ...}: {
imports = [
];

options = {};

config = {
environment.systemPackages = with pkgs; [
ocaml
opam
dune_3
ocamlPackages.odoc
ocamlPackages.ocaml-lsp
ocamlPackages.utop
ocamlPackages.ocamlformat
];
};
}

0 comments on commit fc1c5db

Please sign in to comment.