pkg(nixvim): Remove all lang configuration to single file

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 54d4bc057e
commit 7477166d9e
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
10 changed files with 21 additions and 10 deletions

View file

@ -3,7 +3,7 @@
pkgs,
...
}: {
plugins.conform-nvim.settings = {
youthlic.plugins.conform-nvim.settings = {
formatters_by_ft.c = {
__unkeyed-1 = "clang-format";
lsp_format = "fallback";

View file

@ -3,7 +3,7 @@
pkgs,
...
}: {
plugins.conform-nvim.settings = {
youthlic.plugins.conform-nvim.settings = {
formatters_by_ft.cpp = {
__unkeyed-1 = "clang-format";
lsp_format = "fallback";

View file

@ -3,7 +3,7 @@
pkgs,
...
}: {
plugins.conform-nvim.settings = {
youthlic.plugins.conform-nvim.settings = {
formatters_by_ft.json = {
__unkeyed-1 = "deno_fmt";
};

View file

@ -3,7 +3,10 @@
pkgs,
...
}: {
plugins.conform-nvim.settings = {
lsp.servers.lua_ls = {
enable = true;
};
youthlic.plugins.conform-nvim.settings = {
formatters_by_ft.lua = {
__unkeyed-1 = "stylua";
lsp_format = "fallback";

View file

@ -3,7 +3,7 @@
pkgs,
...
}: {
plugins.conform-nvim.settings = {
youthlic.plugins.conform-nvim.settings = {
formatters_by_ft.markdown = {
__unkeyed-1 = "deno_fmt";
};

View file

@ -3,7 +3,15 @@
pkgs,
...
}: {
plugins.conform-nvim.settings = {
lsp.servers = {
nixd = {
enable = true;
};
nil_ls = {
enable = true;
};
};
youthlic.plugins.conform-nvim.settings = {
formatters_by_ft.nix = {
__unkeyed-1 = "alejandra";
__unkeyed-2 = "injected";

View file

@ -3,7 +3,7 @@
pkgs,
...
}: {
plugins.conform-nvim.settings = {
youthlic.plugins.conform-nvim.settings = {
formatters_by_ft.python = {
__unkeyed-1 = "ruff_format";
__unkeyed-2 = "ruff_organize_imports";

View file

@ -3,7 +3,7 @@
pkgs,
...
}: {
plugins.conform-nvim.settings = {
youthlic.plugins.conform-nvim.settings = {
formatters_by_ft.rust = {
__unkeyed-1 = "rustfmt";
lsp_format = "fallback";

View file

@ -3,7 +3,7 @@
pkgs,
...
}: {
plugins.conform-nvim.settings = {
youthlic.plugins.conform-nvim.settings = {
formatters_by_ft.toml = {
__unkeyed-1 = "taplo";
lsp_format = "fallback";

View file

@ -3,7 +3,7 @@
pkgs,
...
}: {
plugins.conform-nvim.settings = {
youthlic.plugins.conform-nvim.settings = {
formatters_by_ft.yaml = {
__unkeyed-1 = "deno_fmt";
};