feat:add_some

feat:add_edl
build:add_dart&&kotlin&&flutter
chore:enable_unfree
This commit is contained in:
dichgrem
2025-11-19 21:13:31 +08:00
parent 51d40326c4
commit 2f4fb7e2d2
4 changed files with 26 additions and 3 deletions

View File

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

View File

@@ -29,6 +29,8 @@ return {
-- C/C++
opts.formatters_by_ft.c = { "clang_format" }
opts.formatters_by_ft.cpp = { "clang_format" }
-- Kotlin
opts.formatters_by_ft.kotlin = { "ktlint" }
-- Python
opts.formatters_by_ft.python = { "black", "ruff_format" }
-- JS/TS/Web
@@ -43,6 +45,15 @@ return {
opts.formatters_by_ft.yaml = { "yamlfmt" }
-- TOML
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 = {
timeout_ms = 1500,
lsp_format = "fallback",

View File

@@ -55,6 +55,7 @@ in {
yt-dlp
#Android
edl
xxd
file
binwalk
@@ -82,6 +83,9 @@ in {
gnumake
rustc
cargo
dart
kotlin
flutter
jdk17
python312
pnpm

View File

@@ -44,7 +44,7 @@ with lib; {
};
};
nixpkgs = {
config.allowUnfree = false;
config.allowUnfree = true;
hostPlatform = "x86_64-linux";
};
}