From 11fd60c89a246089a3d2776d80233d138165ae23 Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 17 Feb 2024 17:46:00 +0900 Subject: [PATCH] Add linter --- .../common/software/cli/nixvim-base.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/home-manager/common/software/cli/nixvim-base.nix b/home-manager/common/software/cli/nixvim-base.nix index bdc3e746..67a8ff6d 100644 --- a/home-manager/common/software/cli/nixvim-base.nix +++ b/home-manager/common/software/cli/nixvim-base.nix @@ -135,6 +135,25 @@ cmp-buffer.enable = true; cmp-path.enable = true; cmp-nvim-lsp.enable = true; + + # List of linters for nixvim + lint = { + enable = true; + lintersByFt = { + text = ["vale"]; + json = ["jsonlint"]; + markdown = ["vale"]; + rst = ["vale"]; + ruby = ["ruby"]; + janet = ["janet"]; + inko = ["inko"]; + clojure = ["clj-kondo"]; + dockerfile = ["hadolint"]; + terraform = ["tflint"]; + yaml = ["yamllint"]; + nix = ["nix"]; + }; + }; # Popup to show shortcuts