[fix] *.nix: reformat with alejandra
This commit is contained in:
parent
876dc45719
commit
39c2fb096c
26 changed files with 565 additions and 562 deletions
154
nvim/plugins.nix
154
nvim/plugins.nix
|
@ -1,5 +1,7 @@
|
|||
{ lib, pkgs }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
}: {
|
||||
bacon = {
|
||||
enable = true;
|
||||
settings.quickfix.enabled = true;
|
||||
|
@ -10,15 +12,15 @@
|
|||
"/" = {
|
||||
mapping.__raw = "cmp.mapping.preset.cmdline()";
|
||||
sources = [
|
||||
{ name = "rg"; }
|
||||
{ name = "buffer"; }
|
||||
{name = "rg";}
|
||||
{name = "buffer";}
|
||||
];
|
||||
};
|
||||
":" = {
|
||||
mapping.__raw = "cmp.mapping.preset.cmdline()";
|
||||
sources = [
|
||||
{ name = "path"; }
|
||||
{ name = "cmdline"; }
|
||||
{name = "path";}
|
||||
{name = "cmdline";}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -118,16 +120,16 @@
|
|||
conform-nvim = {
|
||||
enable = true;
|
||||
formattersByFt = {
|
||||
"_" = [ "trim_whitespace" ];
|
||||
c = [ "clang_format" ];
|
||||
cpp = [ "clang_format" ];
|
||||
lua = [ "stylua" ];
|
||||
nix = [ "nixpkgs_fmt" ];
|
||||
rust = [ "rustfmt" ];
|
||||
sh = [ "shfmt" ];
|
||||
toml = [ "taplo" ];
|
||||
yaml = [ "yamlfmt" ];
|
||||
zig = [ "zigfmt" ];
|
||||
"_" = ["trim_whitespace"];
|
||||
c = ["clang_format"];
|
||||
cpp = ["clang_format"];
|
||||
lua = ["stylua"];
|
||||
nix = ["nixpkgs_fmt"];
|
||||
rust = ["rustfmt"];
|
||||
sh = ["shfmt"];
|
||||
toml = ["taplo"];
|
||||
yaml = ["yamlfmt"];
|
||||
zig = ["zigfmt"];
|
||||
};
|
||||
};
|
||||
gitsigns.enable = true;
|
||||
|
@ -196,66 +198,64 @@
|
|||
enable = true;
|
||||
indent = true;
|
||||
incrementalSelection.enable = true;
|
||||
grammarPackages =
|
||||
let
|
||||
parsers = pkgs.vimPlugins.nvim-treesitter-parsers;
|
||||
in
|
||||
[
|
||||
parsers.asm
|
||||
parsers.bash
|
||||
# parsers.bibtex
|
||||
parsers.c
|
||||
parsers.comment
|
||||
parsers.commonlisp
|
||||
parsers.cpp
|
||||
parsers.css
|
||||
parsers.csv
|
||||
# parsers.d
|
||||
parsers.diff
|
||||
parsers.dockerfile
|
||||
parsers.dot
|
||||
parsers.doxygen
|
||||
parsers.git_config
|
||||
parsers.git_rebase
|
||||
parsers.gitattributes
|
||||
parsers.gitcommit
|
||||
parsers.gitignore
|
||||
parsers.go
|
||||
parsers.gomod
|
||||
parsers.gosum
|
||||
parsers.gowork
|
||||
parsers.html
|
||||
parsers.ini
|
||||
parsers.json
|
||||
parsers.json5
|
||||
parsers.jsonc
|
||||
# parsers.latex
|
||||
parsers.lua
|
||||
parsers.luadoc
|
||||
parsers.luap
|
||||
parsers.luau
|
||||
parsers.make
|
||||
parsers.markdown
|
||||
parsers.markdown_inline
|
||||
parsers.meson
|
||||
parsers.nix
|
||||
parsers.ocaml
|
||||
parsers.ocaml_interface
|
||||
parsers.pem
|
||||
parsers.python
|
||||
parsers.rust
|
||||
parsers.scheme
|
||||
parsers.sql
|
||||
parsers.ssh_config
|
||||
parsers.toml
|
||||
parsers.tsv
|
||||
parsers.vim
|
||||
parsers.vimdoc
|
||||
parsers.wgsl
|
||||
parsers.wgsl_bevy
|
||||
parsers.yaml
|
||||
parsers.zig
|
||||
];
|
||||
grammarPackages = let
|
||||
parsers = pkgs.vimPlugins.nvim-treesitter-parsers;
|
||||
in [
|
||||
parsers.asm
|
||||
parsers.bash
|
||||
# parsers.bibtex
|
||||
parsers.c
|
||||
parsers.comment
|
||||
parsers.commonlisp
|
||||
parsers.cpp
|
||||
parsers.css
|
||||
parsers.csv
|
||||
# parsers.d
|
||||
parsers.diff
|
||||
parsers.dockerfile
|
||||
parsers.dot
|
||||
parsers.doxygen
|
||||
parsers.git_config
|
||||
parsers.git_rebase
|
||||
parsers.gitattributes
|
||||
parsers.gitcommit
|
||||
parsers.gitignore
|
||||
parsers.go
|
||||
parsers.gomod
|
||||
parsers.gosum
|
||||
parsers.gowork
|
||||
parsers.html
|
||||
parsers.ini
|
||||
parsers.json
|
||||
parsers.json5
|
||||
parsers.jsonc
|
||||
# parsers.latex
|
||||
parsers.lua
|
||||
parsers.luadoc
|
||||
parsers.luap
|
||||
parsers.luau
|
||||
parsers.make
|
||||
parsers.markdown
|
||||
parsers.markdown_inline
|
||||
parsers.meson
|
||||
parsers.nix
|
||||
parsers.ocaml
|
||||
parsers.ocaml_interface
|
||||
parsers.pem
|
||||
parsers.python
|
||||
parsers.rust
|
||||
parsers.scheme
|
||||
parsers.sql
|
||||
parsers.ssh_config
|
||||
parsers.toml
|
||||
parsers.tsv
|
||||
parsers.vim
|
||||
parsers.vimdoc
|
||||
parsers.wgsl
|
||||
parsers.wgsl_bevy
|
||||
parsers.yaml
|
||||
parsers.zig
|
||||
];
|
||||
};
|
||||
trouble = {
|
||||
enable = true;
|
||||
|
@ -264,12 +264,12 @@
|
|||
lint = {
|
||||
enable = true;
|
||||
lintersByFt = {
|
||||
rust = [ "typos" ];
|
||||
rust = ["typos"];
|
||||
latex = [
|
||||
"chktex"
|
||||
"typos"
|
||||
];
|
||||
markdown = [ "typos" ];
|
||||
markdown = ["typos"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue