home: add ./resources/lang
This commit is contained in:
parent
128fec457c
commit
01b92592ad
5 changed files with 41 additions and 9 deletions
|
@ -66,11 +66,6 @@
|
|||
fd
|
||||
freshfetch
|
||||
hyperfine
|
||||
|
||||
# lsp
|
||||
nil
|
||||
gopls
|
||||
libclang
|
||||
])
|
||||
++ (with pkgs.gnome; [
|
||||
# GNOME
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
21
users/guanranwang/home-manager/resources/lang/go.nix
Normal file
21
users/guanranwang/home-manager/resources/lang/go.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
18
users/guanranwang/home-manager/resources/lang/nix.nix
Normal file
18
users/guanranwang/home-manager/resources/lang/nix.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue