mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
users/foo-dogsquared/programs/nixvim: add formatters settings
Setting up formatters for individual NixVim users is preferential so we leave it alone.
This commit is contained in:
parent
881af63a03
commit
8c62b4f501
@ -1,8 +1,26 @@
|
|||||||
# NixVim config for some light software development. This is where language
|
# NixVim config for some light software development. This is where language
|
||||||
# support plugins mainly reside.
|
# support plugins mainly reside. Also formatters.
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
# Confirming these files are conforming.
|
||||||
|
plugins.conform-nvim = {
|
||||||
|
enable = true;
|
||||||
|
formatters = rec {
|
||||||
|
bash = [ "shfmt" ];
|
||||||
|
c = lib.singleton [ "clang_format" ];
|
||||||
|
cpp = c;
|
||||||
|
javascript = lib.singleton [ "prettierd" "prettier" ];
|
||||||
|
lua = [ "stylua" ];
|
||||||
|
nix = lib.singleton [ "nixpkgs-fmt" "alejandra" ];
|
||||||
|
python = [ "isort" "black" ];
|
||||||
|
ruby = lib.singleton [ "rubocop" "rufo" ];
|
||||||
|
typescript = javascript;
|
||||||
|
typst = [ "typstfmt" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Give language "support" through tree-sitter.
|
||||||
plugins.treesitter.grammarPackages =
|
plugins.treesitter.grammarPackages =
|
||||||
with config.plugins.treesitter.package.builtGrammars; [
|
with config.plugins.treesitter.package.builtGrammars; [
|
||||||
agda
|
agda
|
||||||
|
Loading…
Reference in New Issue
Block a user