nixos-config/home-manager/modules/vscode/default.nix

91 lines
2.3 KiB
Nix
Raw Normal View History

2024-02-05 11:46:52 +01:00
{
lib,
pkgs,
config,
...
2022-03-01 22:19:03 +01:00
}:
2024-02-05 11:46:52 +01:00
with lib;
let
2022-03-01 22:19:03 +01:00
cfg = config.eboskma.programs.vscode;
in
{
2021-11-17 16:32:18 +01:00
options.eboskma.programs.vscode.enable = mkEnableOption "enable vscode";
config = mkIf cfg.enable {
programs.vscode = {
enable = true;
package = pkgs.vscode;
2022-03-01 22:19:03 +01:00
extensions = with pkgs.vscode-extensions; [
arrterian.nix-env-selector
bbenoist.nix
# brettm12345.nixfmt-vscode
# aaronduino.nix-lsp
# aliariff.auto-add-brackets
bradlc.vscode-tailwindcss
# bungcip.better-toml
coolbear.systemd-unit-file
# dawhite.mustache
dbaeumer.vscode-eslint
denoland.vscode-deno
# dlasagno.rasi
# dprint.dprint
2022-03-18 21:14:51 +01:00
eamodio.gitlens
2022-03-01 22:19:03 +01:00
editorconfig.editorconfig
esbenp.prettier-vscode
# EugenWiens.bitbake
elixir-lsp.vscode-elixir-ls # this is the one by Jake Becker, not the deprecated one
# kumar-harsh.graphql-for-vscode
matklad.rust-analyzer
# monokai.theme-monokai-pro-vscode
ms-azuretools.vscode-docker
ms-python.python
ms-python.vscode-pylance
ms-toolsai.jupyter
# ms-toolsai.jupyter-keymap
# ms-toolsai.jupyter-renderers
# ms-vscode-remote.remote-containers
ms-vscode-remote.remote-ssh
# ms-vscode-remote.remote-ssh-edit
# ms-vscode.cmake-tools
ms-vscode.cpptools
# msaraiva.surface
# pgourlain.erlang
# phoenixframework.phoenix
rubymaniac.vscode-paste-and-indent
# surajbarkale.ninja
timonwong.shellcheck
2023-03-15 12:03:54 +01:00
tuttieee.emacs-mcx
2022-03-01 22:19:03 +01:00
# twxs.cmake
2022-06-08 17:24:22 +02:00
# vadimcn.vscode-lldb
2022-03-01 22:19:03 +01:00
# vscode-icons-team.vscode-icons
2023-03-08 17:08:11 +01:00
# vscodevim.vim
2022-03-01 22:19:03 +01:00
wholroyd.jinja
xaver.clang-format
zxh404.vscode-proto3
];
2021-11-17 16:32:18 +01:00
2022-02-09 08:13:16 +01:00
keybindings = [
{
"key" = "ctrl+t";
"command" = "-workbench.action.showAllSymbols";
}
{
"key" = "ctrl+t";
"command" = "workbench.action.quickOpen";
}
{
"key" = "ctrl+p";
"command" = "-workbench.action.quickOpen";
}
];
2022-03-01 22:19:03 +01:00
userSettings = builtins.fromJSON (builtins.readFile ./settings.json);
2021-11-17 16:32:18 +01:00
};
home.packages = with pkgs; [
rnix-lsp
2021-11-22 08:04:54 +01:00
shellcheck
2021-11-17 16:32:18 +01:00
];
};
}