Set up LSP stuff

This commit is contained in:
Elnu 2025-04-07 16:00:03 -07:00
parent 0ed194ed53
commit d225073c27
2 changed files with 8 additions and 4 deletions

3
.gitignore vendored
View file

@ -28,4 +28,5 @@ setup.log
# Local OPAM switch
_opam/
.direnv/
.direnv/
.vscode/

View file

@ -18,14 +18,17 @@
platforms = [ system ];
#maintainers = with maintainers; [ ];
};
in {
in with pkgs.ocamlPackages; {
devShells.${system}.default = with pkgs; mkShell {
#packages = [];
packages = [
ocaml-lsp
ocamlformat
];
inputsFrom = with self.packages.${system}; [ helloworld ];
};
packages.${system} = {
default = self.packages.${system}.helloworld;
helloworld = pkgs.ocamlPackages.buildDunePackage rec {
helloworld = buildDunePackage rec {
pname = "helloworld";
version = "0.1.0";
src = ./.;