add some config for helix and zed

This commit is contained in:
ulic-youthlic 2025-04-30 13:15:56 +08:00
parent 23a5ca1f1d
commit 03d5d219e8
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
4 changed files with 87 additions and 35 deletions

View file

@ -1,11 +1,2 @@
{ {
"languages": {
"Nix": {
"formatter": {
"external": {
"command": "alejandra"
}
}
}
}
} }

View file

@ -14,23 +14,23 @@ Hey, you. This is my nixos configurations.
- david@Tytonidae - david@Tytonidae
| Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM | | Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM |
| -------------- | --------- | ----------- | ------ | -------- | --------------- | ------- | -------------- | | -------------- | --------- | ----------- | ----------- | -------- | --------------- | ------- | -------------- |
| default | niri | fish + bash | helix | ghostty | fuzzel | firefox | gdm | | default | niri | fish + bash | helix + zed | ghostty | fuzzel | firefox | gdm |
| cosmic | cosmic de | fish + bash | helix | ghostty | cosmic-launcher | firefox | cosmic-greeter | | cosmic | cosmic de | fish + bash | helix + zed | ghostty | cosmic-launcher | firefox | cosmic-greeter |
| kde | kde | fish + bash | helix | ghostty | - | firefox | sddm | | kde | kde | fish + bash | helix + zed | ghostty | - | firefox | sddm |
- david@Akun - david@Akun
| Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM | | Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM |
| -------------- | ------- | ----------- | ------ | -------- | -------- | ------- | -------------- | | -------------- | ------- | ----------- | ----------- | -------- | -------- | ------- | -------------- |
| default | cosmic | fish + bash | helix | ghostty | - | firefox | cosmic-greeter | | default | cosmic | fish + bash | helix + zed | ghostty | - | firefox | cosmic-greeter |
- alice@Cape - alice@Cape
| Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM | | Specialisation | DE / WM | Shell | Editor | Terminal | Launcher | Browser | DM |
| -------------- | ------- | ----------- | ------ | -------- | -------- | ------- | --- | | -------------- | ------- | ----------- | ------ | -------- | -------- | ------- | -- |
| default | - | fish + bash | helix | - | - | - | - | | default | - | fish + bash | helix | - | - | - | - |
## FlakE OutputS and StructurE ## FlakE OutputS and StructurE

View file

@ -16,29 +16,86 @@ in {
programs.zed-editor = { programs.zed-editor = {
enable = true; enable = true;
extensions = [ extensions = [
"nix" "asciidoc"
"html" "basher"
"java" "cargo-tom"
"git-firely" "codebook"
"make"
"deno" "deno"
"java-eclipse-jdtlS" "docker-compose"
"neocMake" "dockerfile"
"typst" "fish"
"toml" "git-firefly"
"golangci-lint"
"haskell"
"html"
"hurl"
"idris2"
"java"
"java-eclipse-jdtls"
"kdl"
"kotlin"
"lua"
"make"
"markdown-oxide" "markdown-oxide"
"neocmake"
"nix"
"python-refactoring"
"python-requirements"
"scheme"
"toml"
"typst"
"xml"
"zig"
]; ];
extraPackages = with pkgs; [ extraPackages = with pkgs; [
nixd idris2Packages.idris2Lsp
nil lua-language-server
neocmakelsp bash-language-server
deno shfmt
jdt-language-server hurl
cmake-language-server
kdlfmt
rustfmt
clang-tools
libxml2
typstyle
pyright
ruff
gotools
yaml-language-server
taplo taplo
alejandra
markdown-oxide markdown-oxide
marksman
nixd
deno
alejandra
vscode-langservers-extracted
fish-lsp
tailwindcss-language-server
gopls
golangci-lint-langserver
tinymist
delve
lldb
rust-analyzer
# nil
haskell-language-server
neocmakelsp
jdt-language-server
zls
]; ];
userSettings = { userSettings = {
languages = {
Nix = {
language_servers = ["nixd" "!nil"];
formatter = {
external = {
command = "alejandra";
arguments = ["--quiet" "--"];
};
};
};
};
soft_wrap = "editor_width"; soft_wrap = "editor_width";
autosave = "on_focus_change"; autosave = "on_focus_change";
auto_update = false; auto_update = false;

View file

@ -12,6 +12,7 @@
idris2Packages.idris2Lsp idris2Packages.idris2Lsp
lua-language-server lua-language-server
bash-language-server bash-language-server
shfmt
hurl hurl
cmake-language-server cmake-language-server
kdlfmt kdlfmt
@ -31,6 +32,7 @@
alejandra alejandra
vscode-langservers-extracted vscode-langservers-extracted
fish-lsp fish-lsp
tailwindcss-language-server
gopls gopls
golangci-lint-langserver golangci-lint-langserver
tinymist tinymist
@ -40,6 +42,8 @@
# nil # nil
haskell-language-server haskell-language-server
neocmakelsp neocmakelsp
jdt-language-server
zls
] ]
); );
in in