fix nixvim formatters
This commit is contained in:
parent
552e244563
commit
55ecc0aec3
2 changed files with 13 additions and 25 deletions
|
|
@ -129,10 +129,6 @@
|
|||
|
||||
# development & tooling
|
||||
gh
|
||||
deno
|
||||
prettier
|
||||
prettierd
|
||||
nixfmt-rfc-style
|
||||
jdk21_headless
|
||||
nerd-fonts.noto
|
||||
xorg.xcursorgen
|
||||
|
|
|
|||
|
|
@ -5,7 +5,14 @@
|
|||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [ kdePackages.qtdeclarative ];
|
||||
home.packages = with pkgs; [
|
||||
kdePackages.qtdeclarative
|
||||
prettier
|
||||
prettierd
|
||||
nixfmt-rfc-style
|
||||
stylua
|
||||
black
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
|
|
@ -88,27 +95,12 @@
|
|||
settings = {
|
||||
formatters_by_ft = {
|
||||
lua = [ "stylua" ];
|
||||
python = [
|
||||
"isort"
|
||||
"black"
|
||||
];
|
||||
python = [ "black" ];
|
||||
nix = [ "nixfmt" ];
|
||||
javascript = [
|
||||
"deno fmt"
|
||||
"prettier"
|
||||
];
|
||||
css = [
|
||||
"deno fmt"
|
||||
"prettier"
|
||||
];
|
||||
json = [
|
||||
"deno fmt"
|
||||
"prettier"
|
||||
];
|
||||
jsonc = [
|
||||
"deno fmt"
|
||||
"prettier"
|
||||
];
|
||||
javascript = [ "prettier" ];
|
||||
css = [ "prettier" ];
|
||||
json = [ "prettier" ];
|
||||
jsonc = [ "prettier" ];
|
||||
};
|
||||
|
||||
# Default formatting options
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue