update nvim config and cleanup vscode settings

This commit is contained in:
Salar Rahmanian 2024-08-16 19:21:56 -07:00
parent 57baa8ac77
commit a770ede405
3 changed files with 73 additions and 64 deletions

View file

@ -204,69 +204,6 @@
};
};
programs.vscode = {
enable = true;
enableUpdateCheck = false;
enableExtensionUpdateCheck = false;
mutableExtensionsDir = false;
extensions = with pkgs.vscode-extensions; [
asvetliakov.vscode-neovim
baccata.scaladex-search
davidanson.vscode-markdownlint
enkia.tokyo-night
github.copilot
github.copilot-chat
github.github-vscode-theme
github.vscode-github-actions
github.vscode-pull-request-github
humao.rest-client
jnoortheen.nix-ide
mechatroner.rainbow-csv
mkhl.direnv
ms-python.python
ms-python.vscode-pylance
ms-vscode.makefile-tools
ms-toolsai.jupyter
redhat.java
redhat.vscode-yaml
rust-lang.rust-analyzer
scalameta.metals
skyapps.fish-vscode
svsool.markdown-memo
timonwong.shellcheck
usernamehw.errorlens
visualstudioexptteam.vscodeintellicode
vscode-icons-team.vscode-icons
vscjava.vscode-java-pack
xyz.local-history
yzhang.markdown-all-in-one
];
userSettings = {
"editor.fontFamily" = "SF Mono";
"editor.fontSize" = 13;
"editor.copyWithSyntaxHighlighting" = true;
"extensions.experimental.affinity" = {
"asvetliakov.vscode-neovim" = 1;
};
"files.autoSave" = "afterDelay";
"git.autoSave" = "afterDelay";
"git.rebaseWhenSync" = true;
"github.gitProtocol" = "ssh";
"githubPullRequests.notifications" = "pullRequests";
"githubPullRequests.pullBranch" = "never";
"markdown.extension.preview.autoShowPreviewToSide" = true;
# Install paste image manually as not in nix ( https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image )
"pasteImage.insertPattern" = "![[\${imageFileName}]]";
"pasteImage.path" = "\${projectRoot}/Attachments";
"python.analysis.extraPaths" = [ "src" ];
"telemetry.telemetryLevel" = "off";
"window.openFoldersInNewWindow" = "on";
"workbench.colorTheme" = "Tokyo Night";
"workbench.iconTheme" = "vscode-icons";
"workbench.sideBar.location" = "right";
};
};
programs.fish = {
enable = true;
@ -349,6 +286,6 @@
# Neovim Configuration
xdg.configFile."nvim".source = builtins.fetchGit {
url = "https://code.softinio.com/softinio/nvim-config";
rev = "11c5aecb3adc0195642ad35f89c04798f26a9076";
rev = "e5cf7829a42592aa984eb80e8501d171f51b1dbd";
};
}

View file

@ -2,4 +2,5 @@
./git
./tmux
./wezterm
./vscode
]

View file

@ -0,0 +1,71 @@
{ config, pkgs, ... }:
let
myExtensions = with pkgs.vscode-extensions; [
asvetliakov.vscode-neovim
baccata.scaladex-search
davidanson.vscode-markdownlint
enkia.tokyo-night
github.copilot
github.copilot-chat
github.github-vscode-theme
github.vscode-github-actions
github.vscode-pull-request-github
humao.rest-client
jnoortheen.nix-ide
mechatroner.rainbow-csv
mkhl.direnv
ms-python.python
ms-python.vscode-pylance
ms-vscode.makefile-tools
ms-toolsai.jupyter
redhat.java
redhat.vscode-yaml
rust-lang.rust-analyzer
scalameta.metals
skyapps.fish-vscode
svsool.markdown-memo
timonwong.shellcheck
usernamehw.errorlens
visualstudioexptteam.vscodeintellicode
vscode-icons-team.vscode-icons
vscjava.vscode-java-pack
xyz.local-history
yzhang.markdown-all-in-one
];
myUserSettings = {
"editor.fontFamily" = "SF Mono";
"editor.fontSize" = 13;
"editor.copyWithSyntaxHighlighting" = true;
"extensions.experimental.affinity" = {
"asvetliakov.vscode-neovim" = 1;
};
"files.autoSave" = "afterDelay";
"git.autoSave" = "afterDelay";
"git.rebaseWhenSync" = true;
"github.gitProtocol" = "ssh";
"githubPullRequests.notifications" = "pullRequests";
"githubPullRequests.pullBranch" = "never";
"markdown.extension.preview.autoShowPreviewToSide" = true;
# Install paste image manually as not in nix ( https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image )
"pasteImage.insertPattern" = "![[\${imageFileName}]]";
"pasteImage.path" = "\${projectRoot}/Attachments";
"python.analysis.extraPaths" = [ "src" ];
"telemetry.telemetryLevel" = "off";
"window.openFoldersInNewWindow" = "on";
"workbench.colorTheme" = "Tokyo Night";
"workbench.iconTheme" = "vscode-icons";
"workbench.sideBar.location" = "right";
};
in
{
programs.vscode = {
enable = true;
enableUpdateCheck = false;
enableExtensionUpdateCheck = false;
mutableExtensionsDir = false;
extensions = myExtensions;
userSettings = myUserSettings;
};
}