chore:env_add_android

chore:add_gh&&fix_git-full
This commit is contained in:
dichgrem
2025-11-19 21:13:31 +08:00
parent 51d40326c4
commit 003ab2fff7
4 changed files with 37 additions and 6 deletions

12
home/cli/git.nix Normal file
View File

@@ -0,0 +1,12 @@
{ pkgs, ... }: {
programs.git = {
enable = true;
package = pkgs.gitFull;
};
programs.gh.enable = true;
home.packages = with pkgs; [
git-filter-repo
];
}

View File

@@ -35,6 +35,10 @@
#C/C++ #C/C++
clang-tools clang-tools
#Kotlin
ktlint
kotlin-language-server
#Python #Python
ruff ruff
black black
@@ -177,6 +181,8 @@
{ import = "lazyvim.plugins.extras.lang.yaml" }, { import = "lazyvim.plugins.extras.lang.yaml" },
{ import = "lazyvim.plugins.extras.lang.toml" }, { import = "lazyvim.plugins.extras.lang.toml" },
{ import = "lazyvim.plugins.extras.lang.docker" }, { import = "lazyvim.plugins.extras.lang.docker" },
{ import = "lazyvim.plugins.extras.lang.kotlin" },
{ import = "lazyvim.plugins.extras.lang.dart" },
{ import = "plugins" }, { import = "plugins" },
-- treesitter handled by xdg.configFile."nvim/parser", put this line at the end of spec to clear ensure_installed -- treesitter handled by xdg.configFile."nvim/parser", put this line at the end of spec to clear ensure_installed
{ "nvim-treesitter/nvim-treesitter", { "nvim-treesitter/nvim-treesitter",
@@ -199,11 +205,13 @@
with plugins; [ with plugins; [
bash bash
c c
lua
python
go go
lua
rust rust
java java
dart
kotlin
python
javascript javascript
typescript typescript
tsx tsx

View File

@@ -29,6 +29,8 @@ return {
-- C/C++ -- C/C++
opts.formatters_by_ft.c = { "clang_format" } opts.formatters_by_ft.c = { "clang_format" }
opts.formatters_by_ft.cpp = { "clang_format" } opts.formatters_by_ft.cpp = { "clang_format" }
-- Kotlin
opts.formatters_by_ft.kotlin = { "ktlint" }
-- Python -- Python
opts.formatters_by_ft.python = { "black", "ruff_format" } opts.formatters_by_ft.python = { "black", "ruff_format" }
-- JS/TS/Web -- JS/TS/Web
@@ -43,6 +45,15 @@ return {
opts.formatters_by_ft.yaml = { "yamlfmt" } opts.formatters_by_ft.yaml = { "yamlfmt" }
-- TOML -- TOML
opts.formatters_by_ft.toml = { "taplo" } opts.formatters_by_ft.toml = { "taplo" }
-- Dart / Flutter
opts.formatters_by_ft.dart = {
command = "dart",
args = function(ctx)
return { "format", ctx.bufname }
end,
stdin = false,
exit_codes = { 0 },
}
opts.default_format_opts = { opts.default_format_opts = {
timeout_ms = 1500, timeout_ms = 1500,
lsp_format = "fallback", lsp_format = "fallback",

View File

@@ -67,6 +67,7 @@ in {
libvirt libvirt
lm_sensors lm_sensors
usbutils usbutils
libsecret
# Niri # Niri
wlr-randr wlr-randr
@@ -82,6 +83,9 @@ in {
gnumake gnumake
rustc rustc
cargo cargo
dart
kotlin
flutter
jdk17 jdk17
python312 python312
pnpm pnpm
@@ -92,10 +96,6 @@ in {
programs = { programs = {
dconf.enable = true; dconf.enable = true;
fuse.userAllowOther = true; fuse.userAllowOther = true;
git = {
enable = true;
package = pkgs.gitFull;
};
ssh.startAgent = true; ssh.startAgent = true;
}; };
} }