nixvim/plugins/lang/shell.nix
Lander Van den Bulcke 61feed4086
refactor: complete overhaul
Complete overhaul of repo structure based on nvix.

See https://github.com/niksingh710/nvix

Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
2025-10-19 18:25:15 +02:00

33 lines
574 B
Nix

{ lib, pkgs, ... }:
let
formatter = [
"shellcheck"
"shellharden"
"shfmt"
];
in
{
plugins = {
lsp.servers.bashls.enable = true;
conform-nvim.settings = {
formatters_by_ft = {
bash = formatter;
sh = formatter;
zsh = formatter;
};
formatters = {
shellcheck = {
command = lib.getExe pkgs.shellcheck;
};
shellharden = {
command = lib.getExe pkgs.shellharden;
};
shfmt = {
command = lib.getExe pkgs.shfmt;
};
};
};
};
}