fix(neovim): set formatters and linters binaries #455

Merged
jalil merged 1 commit from push-pyrwltsnttpw into main 2025-05-07 14:47:48 +02:00
Showing only changes of commit 434829c96a - Show all commits

View file

@ -90,18 +90,18 @@ in
}) })
# Configure Formatters # Configure Formatters
{ {
extraPackages = [ extraPackages = [ pkgs.luajitPackages.jsregexp ];
pkgs.luajitPackages.jsregexp
pkgs.shfmt
pkgs.stylua
pkgs.taplo
pkgs.yamlfmt
pkgs.fish
];
plugins.conform-nvim = { plugins.conform-nvim = {
enable = true; enable = true;
settings = { settings = {
formatters.nixfmt.command = "${lib.getExe pkgs.nixfmt-rfc-style}"; formatters = {
fish.command = lib.getExe pkgs.fish;
nixfmt.command = lib.getExe pkgs.nixfmt-rfc-style;
shfmt.command = lib.getExe pkgs.shfmt;
stylua.command = lib.getExe pkgs.stylua;
taplo.command = lib.getExe pkgs.taplo;
yamlfmt.command = lib.getExe' pkgs.yamlfmt "fish_indent";
};
formatters_by_ft = { formatters_by_ft = {
"_" = [ "trim_whitespace" ]; "_" = [ "trim_whitespace" ];
c = [ "clang_format" ]; c = [ "clang_format" ];
@ -120,12 +120,13 @@ in
} }
# Configure Linters # Configure Linters
{ {
extraPackages = [
pkgs.dash
pkgs.statix
];
plugins.lint = { plugins.lint = {
enable = true; enable = true;
linters = {
dash.command = lib.getExe pkgs.dash;
statix.command = lib.getExe pkgs.statix;
# chktex = lib.getExe pkgs.chktex; # Not in use
};
lintersByFt = { lintersByFt = {
# latex = [ "chktex" ]; # Not in use # latex = [ "chktex" ]; # Not in use
nix = [ "statix" ]; nix = [ "statix" ];