2024-02-16 13:59:46 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
programs.vscode = {
|
|
|
|
enable = true;
|
2024-02-25 21:03:35 +01:00
|
|
|
package = pkgs.vscodium;
|
2024-02-16 13:59:46 +01:00
|
|
|
extensions = with pkgs.vscode-extensions; [
|
2024-02-25 21:03:35 +01:00
|
|
|
bbenoist.nix
|
2024-02-16 13:59:46 +01:00
|
|
|
yzhang.markdown-all-in-one
|
|
|
|
haskell.haskell
|
|
|
|
justusadam.language-haskell
|
|
|
|
maximedenes.vscoq
|
|
|
|
james-yu.latex-workshop
|
|
|
|
mkhl.direnv
|
|
|
|
catppuccin.catppuccin-vsc
|
2024-02-21 13:33:07 +01:00
|
|
|
valentjn.vscode-ltex
|
2024-02-16 13:59:46 +01:00
|
|
|
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
2024-02-25 21:03:35 +01:00
|
|
|
{
|
|
|
|
name = "agda-mode";
|
|
|
|
publisher = "banacorn";
|
|
|
|
version = "0.4.7";
|
|
|
|
sha256 = "sha256-gNa3n16lP3ooBRvGaugTua4IXcIzpMk7jBYMJDQsY00=";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "yuck";
|
|
|
|
publisher = "eww-yuck";
|
|
|
|
version = "0.0.3";
|
|
|
|
sha256 = "sha256-DITgLedaO0Ifrttu+ZXkiaVA7Ua5RXc4jXQHPYLqrcM=";
|
|
|
|
}
|
2024-02-16 13:59:46 +01:00
|
|
|
];
|
2024-02-25 21:03:35 +01:00
|
|
|
userSettings = {
|
|
|
|
"agdaMode.connection.agdaLanguageServer" = false;
|
|
|
|
"agdaMode.highlighting.getHighlightWithThemeColors" = false;
|
|
|
|
"editor.unicodeHighlight.ambiguousCharacters" = false;
|
|
|
|
"editor.semanticHighlighting.enabled" = true;
|
|
|
|
"workbench.colorTheme" = "Catppuccin Mocha";
|
|
|
|
"haskell.manageHLS" = "PATH";
|
|
|
|
"editor.fontFamily" = "Berkeley Mono, DejaVu Sans Mono, monospace, Unifont";
|
|
|
|
"terminal.integrated.minimumContrastRatio" = 1;
|
|
|
|
"terminal.integrated.shellIntegration.enabled" = false;
|
|
|
|
"terminal.integrated.profiles.linux" = {
|
|
|
|
bash = null;
|
|
|
|
zsh = {
|
|
|
|
path = "/run/current-system/sw/bin/zsh";
|
|
|
|
icon = "terminal-linux";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"terminal.integrated.defaultProfile.linux" = "zsh";
|
|
|
|
"vim.handleKeys" = {
|
|
|
|
"<C-c>" = false;
|
|
|
|
"<C-x>" = false;
|
|
|
|
"<C-s>" = false;
|
|
|
|
"<C-v>" = false;
|
|
|
|
"<C-a>" = false;
|
|
|
|
"<C-d>" = false;
|
|
|
|
};
|
|
|
|
"vim.overrideCopy" = false;
|
|
|
|
"window.titleBarStyle" = "custom";
|
|
|
|
"window.customMenuBarAltFocus" = false;
|
|
|
|
"window.enableMenuBarMnemonics" = false;
|
|
|
|
"ltex.sentenceCacheSize" = 50000;
|
|
|
|
"ltex.java.maximumHeapSize" = 8192;
|
|
|
|
"editor.tabSize" = 2;
|
|
|
|
"explorer.excludeGitIgnore" = true;
|
|
|
|
"files.exclude" = {
|
|
|
|
"**/*.agdai" = true;
|
|
|
|
};
|
|
|
|
# try to fix agda suggestions:
|
|
|
|
"editor.acceptSuggestionOnCommitCharacter" = false;
|
|
|
|
"editor.minimap.enabled" = false;
|
|
|
|
"editor.autoClosingOvertype" = "never";
|
|
|
|
"editor.autoClosingBrackets" = "never";
|
|
|
|
"editor.accessibilitySupport" = "off";
|
|
|
|
};
|
|
|
|
keybindings = [
|
|
|
|
{
|
|
|
|
key = "ctrl+shift+v";
|
|
|
|
command = "extension.vim_ctrl+v";
|
|
|
|
when = "editorTextFocus && vim.active && !inDebugRepl";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "ctrl+shift+=";
|
|
|
|
command = "editor.action.fontZoomIn";
|
|
|
|
when = "";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "ctrl+shift+-";
|
|
|
|
command = "editor.action.fontZoomOut";
|
|
|
|
when = "";
|
|
|
|
}
|
|
|
|
];
|
2024-02-16 13:59:46 +01:00
|
|
|
};
|
|
|
|
}
|