Add text editor configurations

This commit is contained in:
GHOSCHT 2023-11-04 14:49:46 +01:00
parent 968f0105bd
commit 627df96791
No known key found for this signature in database
3 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1,4 @@
[
./nvim.nix
./vscode.nix
]

30
modules/coding/nvim.nix Normal file
View file

@ -0,0 +1,30 @@
{
config,
lib,
pkgs,
vars,
...
}: let
in {
home-manager.users.${vars.user} = {
home.file.".config/nvim/lua/custom/" = {
source = ../../rsc/config/nvim;
recursive = true;
};
};
environment.systemPackages = with pkgs; [
gcc
black
python310Packages.debugpy # is this working?
mypy
ruff
nodePackages.pyright
clang-tools_16
rnix-lsp
rust-analyzer
nodePackages.eslint_d
nodePackages.jsonlint
alejandra
];
}

41
modules/coding/vscode.nix Normal file
View file

@ -0,0 +1,41 @@
{
config,
lib,
pkgs,
vars,
...
}: let
in {
home-manager.users.${vars.user} = {
programs.vscode = {
enable = true;
package = pkgs.vscodium;
enableUpdateCheck = false;
extensions = with pkgs.vscode-extensions; [
catppuccin.catppuccin-vsc
pkief.material-icon-theme
vscodevim.vim
bbenoist.nix
ms-python.python
ms-toolsai.jupyter
ms-toolsai.jupyter-renderers
ms-toolsai.jupyter-keymap
];
userSettings = {
#Theming
"workbench.colorTheme" = "Catppuccin Mocha";
"catppuccin.accentColor" = "teal";
"workbench.iconTheme" = "material-icon-theme";
"window.menuBarVisibility" = "toggle";
"editor.minimap.autohide" = false;
#Extensions - General
"extensions.autoCheckUpdates" = false;
"extensions.autoUpdate" = false;
# Startup
"workbench.startupEditor" = "none";
};
};
};
# programs.vscode.package = pkgs.vscodium.fhsWithPackages (ps: with ps; [rustup zlib]);
}