home: add ./resources/lang

This commit is contained in:
Guanran Wang 2023-11-06 19:23:58 +08:00
parent 128fec457c
commit 01b92592ad
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
5 changed files with 41 additions and 9 deletions

View file

@ -66,11 +66,6 @@
fd
freshfetch
hyperfine
# lsp
nil
gopls
libclang
])
++ (with pkgs.gnome; [
# GNOME

View file

@ -9,6 +9,8 @@
../../resources/editor/vscode.nix
../../resources/browser/chromium.nix
../../resources/browser/librewolf.nix
../../resources/lang/nix.nix
../../resources/lang/go.nix
../../resources/wm/sway.nix

View file

@ -29,15 +29,11 @@
"workbench.colorTheme" = "Tokyo Night";
# Extensions
### Nix IDE
"nix.enableLanguageServer" = true;
"nix.serverPath" = "${pkgs.nil}/bin/nil";
### GitLens
"gitlens.telemetry.enabled" = false;
};
extensions = with pkgs.vscode-extensions; [
### LSP
jnoortheen.nix-ide
#ms-python.python
rust-lang.rust-analyzer
tamasfe.even-better-toml

View file

@ -0,0 +1,21 @@
{
pkgs,
config,
...
}: {
home.packages = with pkgs; [
### Compiler
go
### LSP
gopls
];
# Make Go follow XDG
# "$HOME/go"...
xdg.configFile = {
"go/env".text = ''
GOPATH=${config.xdg.cacheHome}/go
GOBIN=${config.xdg.stateHome}/go/bin
'';
};
}

View file

@ -0,0 +1,18 @@
{pkgs, ...}: {
home.packages = with pkgs; [
### LSP
nil
];
### VSCode
programs.vscode = {
userSettings = {
### Nix IDE
"nix.enableLanguageServer" = true;
"nix.serverPath" = "${pkgs.nil}/bin/nil";
};
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
];
};
}