feat(nvim): use nix-vscode-ext overlay, vscode, sync

This commit is contained in:
winston 2023-09-04 04:57:43 +02:00
parent e7f8ccd4ba
commit a1396303fb
Signed by: winston
GPG key ID: 3786770EDBC2B481
3 changed files with 31 additions and 10 deletions

View file

@ -12,8 +12,8 @@
in { in {
programs.vscode = { programs.vscode = {
enable = true; enable = true;
package = pkgs.vscodium; package = pkgs.vscode;
extensions = with pkgs.nix-vscode-extensions.vscode-marketplace; [ extensions = with pkgs.vscode-marketplace; [
adrianwilczynski.alpine-js-intellisense adrianwilczynski.alpine-js-intellisense
astro-build.astro-vscode astro-build.astro-vscode
bradlc.vscode-tailwindcss bradlc.vscode-tailwindcss
@ -21,12 +21,14 @@ in {
denoland.vscode-deno denoland.vscode-deno
eamodio.gitlens eamodio.gitlens
esbenp.prettier-vscode esbenp.prettier-vscode
github.copilot
github.vscode-pull-request-github github.vscode-pull-request-github
gitlab.gitlab-workflow gitlab.gitlab-workflow
jnoortheen.nix-ide jnoortheen.nix-ide
kamadorueda.alejandra kamadorueda.alejandra
leonardssh.vscord leonardssh.vscord
lunuan.kubernetes-templates lunuan.kubernetes-templates
mikestead.dotenv
mkhl.direnv mkhl.direnv
ms-kubernetes-tools.vscode-kubernetes-tools ms-kubernetes-tools.vscode-kubernetes-tools
pkief.material-icon-theme pkief.material-icon-theme
@ -34,6 +36,7 @@ in {
rust-lang.rust-analyzer rust-lang.rust-analyzer
sumneko.lua sumneko.lua
tamasfe.even-better-toml tamasfe.even-better-toml
tomoki1207.pdf
valentjn.vscode-ltex valentjn.vscode-ltex
vscodevim.vim vscodevim.vim
]; ];
@ -41,12 +44,12 @@ in {
}; };
home.file = lib.mkIf isDarwin { home.file = lib.mkIf isDarwin {
"Library/Application Support/VSCodium/User/keybindings.json".source = keybindingsJSON; "Library/Application Support/Code/User/keybindings.json".source = keybindingsJSON;
"Library/Application Support/VSCodium/User/settings.json".source = settingsJSON; "Library/Application Support/Code/User/settings.json".source = settingsJSON;
}; };
xdg.configFile = lib.mkIf isLinux { xdg.configFile = lib.mkIf isLinux {
"VSCodium/User/keybindings.json".source = keybindingsJSON; "Code/User/keybindings.json".source = keybindingsJSON;
"VSCodium/User/settings.json".source = settingsJSON; "Code/User/settings.json".source = settingsJSON;
}; };
xdg.mimeApps.defaultApplications."text/plain" = "codium.desktop"; xdg.mimeApps.defaultApplications."text/plain" = "code.desktop";
} }

View file

@ -36,6 +36,9 @@
"extensions.autoUpdate": false, "extensions.autoUpdate": false,
"extensions.ignoreRecommendations": true, "extensions.ignoreRecommendations": true,
"git.autofetch": true, "git.autofetch": true,
"gopls": {
"ui.semanticTokens": true
},
"ltex.additionalRules.enablePickyRules": true, "ltex.additionalRules.enablePickyRules": true,
"ltex.additionalRules.motherTongue": "de-AT", "ltex.additionalRules.motherTongue": "de-AT",
"markdown.preview.fontFamily": "IBM Plex Sans, sans-serif", "markdown.preview.fontFamily": "IBM Plex Sans, sans-serif",
@ -61,7 +64,17 @@
"vim.incsearch": true, "vim.incsearch": true,
"vim.insertModeKeyBindings": [], "vim.insertModeKeyBindings": [],
"vim.leader": "<space>", "vim.leader": "<space>",
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": ["r", "h"],
"commands": ["git.revertSelectedRanges"]
}
],
"vim.normalModeKeyBindingsNonRecursive": [ "vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["g", "r"],
"commands": ["editor.action.goToReferences"]
},
{ {
"before": ["K"], "before": ["K"],
"commands": ["editor.action.showHover"] "commands": ["editor.action.showHover"]
@ -119,12 +132,17 @@
"vim.smartRelativeLine": true, "vim.smartRelativeLine": true,
"vs-kubernetes": { "vs-kubernetes": {
"vs-kubernetes.crd-code-completion": "enabled", "vs-kubernetes.crd-code-completion": "enabled",
"vs-kubernetes.minikube-show-information-expiration": "2024-12-00T00:00:00.000Z" "vs-kubernetes.minikube-show-information-expiration": "2024-01-29T10:44:10.813Z"
}, },
"vscord.app.name": "VSCodium", "vscord.app.name": "VSCodium",
"vscord.status.idle.check": false,
"window.autoDetectColorScheme": true, "window.autoDetectColorScheme": true,
"workbench.colorTheme": "Catppuccin Mocha", "workbench.colorTheme": "Catppuccin Mocha",
"workbench.iconTheme": "catppuccin-mocha", "workbench.iconTheme": "catppuccin-mocha",
"workbench.preferredDarkColorTheme": "Catppuccin Mocha", "workbench.preferredDarkColorTheme": "Catppuccin Mocha",
"workbench.preferredLightColorTheme": "Catppuccin Latte" "workbench.preferredLightColorTheme": "Catppuccin Latte",
"d.stdlibPath": "auto",
"d.servedReleaseChannel": "beta",
"dfmt.braceStyle": "otbs",
"d.alwaysShowDubStatusButtons": true
} }

View file

@ -10,10 +10,10 @@
}; };
}; };
nekowinston-nur = import inputs.nekowinston-nur {inherit (prev) pkgs;}; nekowinston-nur = import inputs.nekowinston-nur {inherit (prev) pkgs;};
nix-vscode-extensions = inputs.nix-vscode-extensions.extensions.${prev.system};
sway-unwrapped = inputs.swayfx.packages.${prev.system}.default; sway-unwrapped = inputs.swayfx.packages.${prev.system}.default;
}) })
inputs.nekowinston-nur.overlays.default inputs.nekowinston-nur.overlays.default
inputs.nix-vscode-extensions.overlays.default
]; ];
hmCommonConfig = {username}: ({ hmCommonConfig = {username}: ({
config, config,