Enable nvim yamlfmt

This commit is contained in:
GHOSCHT 2024-03-03 13:08:33 +01:00
parent 9e47462835
commit 5de98e93e2
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 11 additions and 9 deletions

View file

@ -1,14 +1,13 @@
{ config {
, lib config,
, pkgs lib,
, # vars, pkgs,
# vars,
... ...
}: }: let
let
vars = import ../../../../vars.nix; vars = import ../../../../vars.nix;
colors = config.colorScheme.colors; colors = config.colorScheme.colors;
in in {
{
home.sessionVariables.EDITOR = "nvim"; home.sessionVariables.EDITOR = "nvim";
programs.neovim = { programs.neovim = {
@ -30,6 +29,7 @@ in
alejandra # nix alejandra # nix
clang-tools_16 # c/c++ clang-tools_16 # c/c++
rustfmt rustfmt
yamlfmt
# Linters # Linters
ruff # python ruff # python

View file

@ -17,6 +17,8 @@ local opts = {
null_ls.builtins.formatting.alejandra, null_ls.builtins.formatting.alejandra,
-- Rust -- Rust
null_ls.builtins.formatting.rustfmt, null_ls.builtins.formatting.rustfmt,
-- YAML
null_ls.builtins.formatting.yamlfmt,
}, },
on_attach = function(client, bufnr) on_attach = function(client, bufnr)
if client.supports_method("textDocument/formatting") then if client.supports_method("textDocument/formatting") then