Skip to content

Commit

Permalink
[helix] Setup golines as default formatter for go
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Jan 23, 2025
1 parent 37af4e5 commit a1cc0b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions home/helix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,21 @@
pkgs.docker-compose-language-service
pkgs.golangci-lint-langserver
pkgs.gopls
pkgs.golines
pkgs.marksman
pkgs.nil
pkgs.terraform-ls
pkgs.yaml-language-server
];
languages = {
language = [
{
name = "go";
auto-format = true;
formatter = {
command = "${pkgs.golines}/bin/golines";
};
}
{
name = "nix";
auto-format = true;
Expand Down

0 comments on commit a1cc0b9

Please sign in to comment.