Skip to content

Commit

Permalink
gleam: init (#84)
Browse files Browse the repository at this point in the history
* lsp: enable gleam lsp

* none-ls: add gleam format

* shell: add gleam

* copilot: disable for gleam
  • Loading branch information
MikaelFangel authored May 28, 2024
1 parent 216d366 commit 7e9cb6a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/cmp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
enable = true;
suggestion.enabled = false;
panel.enabled = false;
filetypes = {
yaml = false;
markdown = false;
help = false;
gleam = false; # Copilot doesn't really help when writing Gleam
gitcommit = false;
gitrebase = false;
hgcommit = false;
svn = false;
cvs = false;
"." = false;
};
};

cmp-buffer = { enable = true; };
Expand Down
1 change: 1 addition & 0 deletions config/lsp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
bashls.enable = true;
clangd.enable = true;
elixirls.enable = true;
gleam.enable = true;
gopls.enable = true;
kotlin-language-server.enable = true;
nixd.enable = true;
Expand Down
1 change: 1 addition & 0 deletions config/lsp/none-ls.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
};
formatting = {
fantomas.enable = true;
gleam_format.enable = true;
gofmt.enable = true;
goimports.enable = true;
ktlint.enable = true;
Expand Down
3 changes: 3 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ pkgs.mkShell {
cargo
rustc

# Gleam
gleam

# Elixir
elixir

Expand Down

0 comments on commit 7e9cb6a

Please sign in to comment.