From 02e5c2366fb5893d97bffc658eb6aa1be1ae4d06 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 19 Aug 2023 22:30:20 +0200 Subject: Fix(hm/conf/neovim): Add linter and formatters to the wrapped neovim --- home-manager/soispha/config/neovim/nixvim/default.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'home-manager/soispha/config/neovim') diff --git a/home-manager/soispha/config/neovim/nixvim/default.nix b/home-manager/soispha/config/neovim/nixvim/default.nix index a96bc476..8fc6a05e 100644 --- a/home-manager/soispha/config/neovim/nixvim/default.nix +++ b/home-manager/soispha/config/neovim/nixvim/default.nix @@ -1,4 +1,4 @@ -{...}: { +{pkgs, ...}: { imports = [ ./autocmds ./clipboard @@ -22,5 +22,22 @@ -- --------------------------------------------------------------------------- ''; + + extraPackages = with pkgs; [ + /* + These are mostly linters and formatters used for different file types. + Including them here is fine, as they are not necessarily sync able to different people. + */ + # nix + alejandra + statix + + # yaml + yamllint + + # shell + shellcheck + shfmt + ]; }; } -- cgit 1.4.1