diff --git a/home/features/coding/nvim/default.nix b/home/features/coding/nvim/default.nix index 7c9176e..77c7b5c 100644 --- a/home/features/coding/nvim/default.nix +++ b/home/features/coding/nvim/default.nix @@ -1,14 +1,13 @@ -{ config -, lib -, pkgs -, # vars, +{ + config, + lib, + pkgs, + # vars, ... -}: -let +}: let vars = import ../../../../vars.nix; colors = config.colorScheme.colors; -in -{ +in { home.sessionVariables.EDITOR = "nvim"; programs.neovim = { @@ -30,6 +29,7 @@ in alejandra # nix clang-tools_16 # c/c++ rustfmt + yamlfmt # Linters ruff # python @@ -233,7 +233,7 @@ in ]; terminal = true; type = "Application"; - categories = [ "Utility" "TextEditor" ]; + categories = ["Utility" "TextEditor"]; }; }; } diff --git a/home/features/coding/nvim/plugin/none-ls.lua b/home/features/coding/nvim/plugin/none-ls.lua index 8c96821..0e47d6a 100644 --- a/home/features/coding/nvim/plugin/none-ls.lua +++ b/home/features/coding/nvim/plugin/none-ls.lua @@ -17,6 +17,8 @@ local opts = { null_ls.builtins.formatting.alejandra, -- Rust null_ls.builtins.formatting.rustfmt, + -- YAML + null_ls.builtins.formatting.yamlfmt, }, on_attach = function(client, bufnr) if client.supports_method("textDocument/formatting") then