pkg(nixvim): Remove all lang configuration to single file
This commit is contained in:
parent
54d4bc057e
commit
7477166d9e
10 changed files with 21 additions and 10 deletions
|
|
@ -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";
|
||||
|
|
@ -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";
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
plugins.conform-nvim.settings = {
|
||||
youthlic.plugins.conform-nvim.settings = {
|
||||
formatters_by_ft.json = {
|
||||
__unkeyed-1 = "deno_fmt";
|
||||
};
|
||||
|
|
@ -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";
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
plugins.conform-nvim.settings = {
|
||||
youthlic.plugins.conform-nvim.settings = {
|
||||
formatters_by_ft.markdown = {
|
||||
__unkeyed-1 = "deno_fmt";
|
||||
};
|
||||
|
|
@ -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";
|
||||
|
|
@ -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";
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
plugins.conform-nvim.settings = {
|
||||
youthlic.plugins.conform-nvim.settings = {
|
||||
formatters_by_ft.rust = {
|
||||
__unkeyed-1 = "rustfmt";
|
||||
lsp_format = "fallback";
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
plugins.conform-nvim.settings = {
|
||||
youthlic.plugins.conform-nvim.settings = {
|
||||
formatters_by_ft.toml = {
|
||||
__unkeyed-1 = "taplo";
|
||||
lsp_format = "fallback";
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
plugins.conform-nvim.settings = {
|
||||
youthlic.plugins.conform-nvim.settings = {
|
||||
formatters_by_ft.yaml = {
|
||||
__unkeyed-1 = "deno_fmt";
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue