Skip to content

Commit

Permalink
languages/ocaml: add ocaml to maximal config
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekpoz committed May 16, 2024
1 parent f343ab8 commit 7224c1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ inputs: let
go.enable = isMaximal;
elixir.enable = isMaximal;
zig.enable = isMaximal;
ocaml.enable = isMaximal;
python.enable = isMaximal;
dart.enable = isMaximal;
bash.enable = isMaximal;
Expand Down
10 changes: 5 additions & 5 deletions modules/plugins/languages/ocaml.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
capabilities = capabilities,
on_attach = default_on_attach,
cmd = ${
if isList cfg.lsp.package
then expToLua cfg.lsp.package
else ''{"${getExe cfg.lsp.package}"}''
};
if isList cfg.lsp.package
then expToLua cfg.lsp.package
else ''{"${getExe cfg.lsp.package}"}''
};
}
'';
};
Expand Down Expand Up @@ -99,7 +99,7 @@ in {
(mkIf cfg.format.enable {
vim.lsp.null-ls.enable = true;
vim.lsp.null-ls.sources.ocamlformat = formats.${cfg.format.type}.nullConfig;
vim.extraPackages = [ formats.${cfg.format.type}.package ];
vim.extraPackages = [formats.${cfg.format.type}.package];
})
]);
}

0 comments on commit 7224c1e

Please sign in to comment.