fix(neovim): set formatters and linters binaries
Otherwise they are picked up from the environment.
This commit is contained in:
parent
e643aaeccc
commit
434829c96a
1 changed files with 14 additions and 13 deletions
|
@ -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" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue