format all files

This commit is contained in:
Asaki Yuki 2026-04-14 01:15:18 +07:00
parent f940a235f0
commit a47826b7c2
101 changed files with 1073 additions and 1034 deletions

View file

@ -1,15 +1,13 @@
{ pkgs, ... }:
let
EXTRA_PLUGINS = [
./extras/neocord.nix
./extras/mini-icons.nix
];
{pkgs, ...}: let
EXTRA_PLUGINS = [
./extras/neocord.nix
./extras/mini-icons.nix
];
LUA = [
./lua/neocord.lua
];
in
{
extraPlugins = map (path: import path { plugins = pkgs.vimPlugins; }) EXTRA_PLUGINS;
extraConfigLua = builtins.concatStringsSep "\n" (map builtins.readFile LUA);
}
LUA = [
./lua/neocord.lua
];
in {
extraPlugins = map (path: import path {plugins = pkgs.vimPlugins;}) EXTRA_PLUGINS;
extraConfigLua = builtins.concatStringsSep "\n" (map builtins.readFile LUA);
}

View file

@ -1,5 +1,4 @@
{ ... }@inputs:
{
{...} @ inputs: {
plugins = {
nvim-tree = import ./nvimtree.nix inputs;
lsp = import ./lsp.nix inputs;

View file

@ -1,25 +1,25 @@
{ ... }: {
enable = true;
autoEnableSources = true;
{...}: {
enable = true;
autoEnableSources = true;
settings = {
sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "luasnip"; }
{ name = "buffer"; }
];
settings = {
sources = [
{name = "nvim_lsp";}
{name = "path";}
{name = "luasnip";}
{name = "buffer";}
];
mapping = {
"<C-Space>" = "cmp.mapping.complete()";
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
"<C-e>" = "cmp.mapping.abort()";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
};
formatting.fields = [ "kind" "abbr" "menu" ];
mapping = {
"<C-Space>" = "cmp.mapping.complete()";
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
"<C-e>" = "cmp.mapping.abort()";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
};
}
formatting.fields = ["kind" "abbr" "menu"];
};
}

View file

@ -1,15 +1,14 @@
{ ... }:
{
{...}: {
enable = true;
settings = {
formatters_by_ft = {
javascript = [ "prettier" ];
typescript = [ "prettier" ];
json = [ "prettier" ];
css = [ "prettier" ];
html = [ "prettier" ];
nix = [ "nixfmt" ];
php = [ "php_cs_fixer" ];
javascript = ["prettier"];
typescript = ["prettier"];
json = ["prettier"];
css = ["prettier"];
html = ["prettier"];
nix = ["nixfmt"];
php = ["php_cs_fixer"];
};
format_on_save = {

View file

@ -1,4 +1,3 @@
{ plugins, ... }:
{
plugin = plugins.mini-icons;
}
{plugins, ...}: {
plugin = plugins.mini-icons;
}

View file

@ -1,4 +1,3 @@
{ plugins, ... }:
{
plugin = plugins.neocord;
}
{plugins, ...}: {
plugin = plugins.neocord;
}

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
enable = true;
lintersByFt = {
};

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
enable = true;
servers = {
phpactor.enable = true;

View file

@ -1,4 +1,4 @@
{ ... }: {
enable = true;
cmp.enable = true;
{...}: {
enable = true;
cmp.enable = true;
}

View file

@ -1,5 +1,5 @@
{ ... }: {
enable = true;
openOnSetupFile = true;
settings.auto_reload_on_write = true;
{...}: {
enable = true;
openOnSetupFile = true;
settings.auto_reload_on_write = true;
}

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
enable = true;
settings = {
preset = "modern";