mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
style: nix format
This commit is contained in:
parent
7ceb157457
commit
26b1412b82
19 changed files with 108 additions and 92 deletions
|
|
@ -21,11 +21,15 @@
|
|||
./terminal.nix
|
||||
./bat.nix
|
||||
./aerospace.nix
|
||||
# TODO ./browser.nix
|
||||
# TODO ./pass.nix
|
||||
# TODO ./claude-code.nix
|
||||
# TODO ./codex.nix
|
||||
# TODO ./gemini-cli.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
username = username;
|
||||
inherit username;
|
||||
homeDirectory = "/Users/${username}";
|
||||
stateVersion = "25.11";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
{lib, ...}: [
|
||||
{ lib, ... }:
|
||||
[
|
||||
# autocmds
|
||||
{
|
||||
enable = true;
|
||||
event = ["BufReadPost"];
|
||||
event = [ "BufReadPost" ];
|
||||
desc = "Return to last cursor position";
|
||||
group = "LastCursorGroup";
|
||||
callback = lib.generators.mkLuaInline ''
|
||||
|
|
@ -17,10 +18,10 @@
|
|||
}
|
||||
{
|
||||
enable = true;
|
||||
event = ["TextYankPost"];
|
||||
event = [ "TextYankPost" ];
|
||||
desc = "Highlight yanks on copy";
|
||||
group = "HighlightYank";
|
||||
pattern = ["*"];
|
||||
pattern = [ "*" ];
|
||||
callback = lib.generators.mkLuaInline ''
|
||||
function()
|
||||
vim.hl.on_yank({
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{lib, ...}: let
|
||||
{ lib, ... }:
|
||||
let
|
||||
options = import ./core/options.nix;
|
||||
autocmds = import ./core/autocmds.nix {inherit lib;};
|
||||
autocmds = import ./core/autocmds.nix { inherit lib; };
|
||||
augroups = import ./core/augroups.nix;
|
||||
keymaps = import ./core/keymaps.nix;
|
||||
fzf-lua = import ./plugins/fzf-lua.nix;
|
||||
|
|
@ -13,7 +14,8 @@
|
|||
treesitter = import ./lsp/treesitter.nix;
|
||||
autocomplete = import ./lsp/autocomplete.nix;
|
||||
languages = import ./lsp/languages;
|
||||
in {
|
||||
in
|
||||
{
|
||||
programs.nvf = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@
|
|||
enable = true;
|
||||
extraDiagnostics = {
|
||||
enable = true;
|
||||
types = ["shellcheck"];
|
||||
types = [ "shellcheck" ];
|
||||
};
|
||||
format = {
|
||||
enable = true;
|
||||
type = ["shfmt"];
|
||||
type = [ "shfmt" ];
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["bash-ls"];
|
||||
servers = [ "bash-ls" ];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ let
|
|||
markdown = import ./markdown.nix;
|
||||
html = import ./html.nix;
|
||||
yaml = import ./yaml.nix;
|
||||
in {
|
||||
in
|
||||
{
|
||||
inherit
|
||||
nix
|
||||
python
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
enable = true;
|
||||
extraDiagnostics = {
|
||||
enable = true;
|
||||
types = ["htmlhint"];
|
||||
types = [ "htmlhint" ];
|
||||
};
|
||||
format = {
|
||||
enable = true;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["superhtml"];
|
||||
servers = [ "superhtml" ];
|
||||
};
|
||||
treesitter = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@
|
|||
enable = true;
|
||||
extraDiagnostics = {
|
||||
enable = true;
|
||||
types = ["luacheck"];
|
||||
types = [ "luacheck" ];
|
||||
};
|
||||
format = {
|
||||
enable = true;
|
||||
type = ["stylua"];
|
||||
type = [ "stylua" ];
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["lua-language-server"];
|
||||
servers = [ "lua-language-server" ];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
};
|
||||
extraDiagnostics = {
|
||||
enable = true;
|
||||
types = ["markdownlint-cli2"];
|
||||
types = [ "markdownlint-cli2" ];
|
||||
};
|
||||
format = {
|
||||
enable = true;
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["marksman"];
|
||||
servers = [ "marksman" ];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["nil"];
|
||||
servers = [ "nil" ];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@
|
|||
enable = true;
|
||||
format = {
|
||||
enable = true;
|
||||
type = ["ruff"];
|
||||
type = [ "ruff" ];
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["pyright"];
|
||||
servers = [ "pyright" ];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
enable = true;
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["yaml-language-server"];
|
||||
servers = [ "yaml-language-server" ];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
# fzf-lua
|
||||
enable = true;
|
||||
profile = "default";
|
||||
setupOpts = {};
|
||||
setupOpts = { };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,6 @@
|
|||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
enableBashIntegration = true;
|
||||
# TODO wezterm config
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
enableBashIntegration = true;
|
||||
options = ["--cmd j"];
|
||||
options = [ "--cmd j" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue