feat(nvim): use nix-vscode-ext overlay, vscode, sync
This commit is contained in:
parent
e7f8ccd4ba
commit
a1396303fb
3 changed files with 31 additions and 10 deletions
|
@ -12,8 +12,8 @@
|
|||
in {
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
extensions = with pkgs.nix-vscode-extensions.vscode-marketplace; [
|
||||
package = pkgs.vscode;
|
||||
extensions = with pkgs.vscode-marketplace; [
|
||||
adrianwilczynski.alpine-js-intellisense
|
||||
astro-build.astro-vscode
|
||||
bradlc.vscode-tailwindcss
|
||||
|
@ -21,12 +21,14 @@ in {
|
|||
denoland.vscode-deno
|
||||
eamodio.gitlens
|
||||
esbenp.prettier-vscode
|
||||
github.copilot
|
||||
github.vscode-pull-request-github
|
||||
gitlab.gitlab-workflow
|
||||
jnoortheen.nix-ide
|
||||
kamadorueda.alejandra
|
||||
leonardssh.vscord
|
||||
lunuan.kubernetes-templates
|
||||
mikestead.dotenv
|
||||
mkhl.direnv
|
||||
ms-kubernetes-tools.vscode-kubernetes-tools
|
||||
pkief.material-icon-theme
|
||||
|
@ -34,6 +36,7 @@ in {
|
|||
rust-lang.rust-analyzer
|
||||
sumneko.lua
|
||||
tamasfe.even-better-toml
|
||||
tomoki1207.pdf
|
||||
valentjn.vscode-ltex
|
||||
vscodevim.vim
|
||||
];
|
||||
|
@ -41,12 +44,12 @@ in {
|
|||
};
|
||||
|
||||
home.file = lib.mkIf isDarwin {
|
||||
"Library/Application Support/VSCodium/User/keybindings.json".source = keybindingsJSON;
|
||||
"Library/Application Support/VSCodium/User/settings.json".source = settingsJSON;
|
||||
"Library/Application Support/Code/User/keybindings.json".source = keybindingsJSON;
|
||||
"Library/Application Support/Code/User/settings.json".source = settingsJSON;
|
||||
};
|
||||
xdg.configFile = lib.mkIf isLinux {
|
||||
"VSCodium/User/keybindings.json".source = keybindingsJSON;
|
||||
"VSCodium/User/settings.json".source = settingsJSON;
|
||||
"Code/User/keybindings.json".source = keybindingsJSON;
|
||||
"Code/User/settings.json".source = settingsJSON;
|
||||
};
|
||||
xdg.mimeApps.defaultApplications."text/plain" = "codium.desktop";
|
||||
xdg.mimeApps.defaultApplications."text/plain" = "code.desktop";
|
||||
}
|
||||
|
|
|
@ -36,6 +36,9 @@
|
|||
"extensions.autoUpdate": false,
|
||||
"extensions.ignoreRecommendations": true,
|
||||
"git.autofetch": true,
|
||||
"gopls": {
|
||||
"ui.semanticTokens": true
|
||||
},
|
||||
"ltex.additionalRules.enablePickyRules": true,
|
||||
"ltex.additionalRules.motherTongue": "de-AT",
|
||||
"markdown.preview.fontFamily": "IBM Plex Sans, sans-serif",
|
||||
|
@ -61,7 +64,17 @@
|
|||
"vim.incsearch": true,
|
||||
"vim.insertModeKeyBindings": [],
|
||||
"vim.leader": "<space>",
|
||||
"vim.visualModeKeyBindingsNonRecursive": [
|
||||
{
|
||||
"before": ["r", "h"],
|
||||
"commands": ["git.revertSelectedRanges"]
|
||||
}
|
||||
],
|
||||
"vim.normalModeKeyBindingsNonRecursive": [
|
||||
{
|
||||
"before": ["g", "r"],
|
||||
"commands": ["editor.action.goToReferences"]
|
||||
},
|
||||
{
|
||||
"before": ["K"],
|
||||
"commands": ["editor.action.showHover"]
|
||||
|
@ -119,12 +132,17 @@
|
|||
"vim.smartRelativeLine": true,
|
||||
"vs-kubernetes": {
|
||||
"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.status.idle.check": false,
|
||||
"window.autoDetectColorScheme": true,
|
||||
"workbench.colorTheme": "Catppuccin Mocha",
|
||||
"workbench.iconTheme": "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
|
||||
}
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
};
|
||||
};
|
||||
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;
|
||||
})
|
||||
inputs.nekowinston-nur.overlays.default
|
||||
inputs.nix-vscode-extensions.overlays.default
|
||||
];
|
||||
hmCommonConfig = {username}: ({
|
||||
config,
|
||||
|
|
Loading…
Reference in a new issue