Skip to content

Can I use the full path of a tool with sqlformat-command? #7

@bbigras

Description

@bbigras

I would like to do this with nix instead of adding sqlfluff in my path.

{
  sqlformat = {
    enable = true;
    hook = [
      "(sql-mode-hook . sqlformat-on-save-mode)"
    ];
    config = ''
    (setq sqlformat-command "${pkgs.sqlfluff}/bin/sqlfluff")
    (setq sqlformat-args '("fix" "-f" "-"))
  '';
  };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions