Enable nvim yamlfmt
This commit is contained in:
parent
9e47462835
commit
5de98e93e2
2 changed files with 11 additions and 9 deletions
|
@ -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"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue