clean up librewolf more, hide more title bars, include vscode config for notgne2

This commit is contained in:
notgne2 2022-02-04 00:34:47 -07:00
parent 7bed334ae1
commit aecd75e5a1
No known key found for this signature in database
GPG key ID: BB661E172B42A7F8
4 changed files with 116 additions and 18 deletions

View file

@ -24,6 +24,90 @@ in
nixpkgs-fmt
];
programs.vscode = {
userSettings = {
"editor.bracketPairColorization.enabled" = true;
"editor.guides.bracketPairs" = "active";
"window.menuBarVisibility" = "toggle";
"workbench.sideBar.location" = "right";
"vim.overrideCopy" = true;
"vim.useSystemClipboard" = true;
"vim.easymotion" = true;
"vim.sneak" = true;
"vim.hlsearch" = true;
"vim.normalModeKeyBindings" = [
{
before = [ "<Tab>" ];
commands = [ "workbench.action.nextEditorInGroup" ];
}
{
before = [ "<S-Tab>" ];
commands = [ "workbench.action.previousEditorInGroup" ];
}
];
"nix.formatterPath" = "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt";
"nix.serverPath" = "${pkgs.rnix-lsp}/bin/rnix-lsp";
"nix.enableLanguageServer" = true;
"rust-client.disableRustup" = true;
"editor.formatOnSave" = true;
};
extensions = with pkgs.vscode-extensions; [
vscodevim.vim
jnoortheen.nix-ide
haskell.haskell
justusadam.language-haskell
(
let
attrs = lib.importJSON "${inputs.direnv-vscode}/package.json";
inherit (attrs) name version;
vsix = "${name}-${version}.vsix";
npm = pkgs.callPackage "${inputs.npmlock2nix}/internal.nix" { nodejs = pkgs.nodejs-14_x; };
node_modules_attrs = {
buildInputs =
if pkgs.stdenv.isDarwin
then [ pkgs.python3 ]
else [ pkgs.python3 pkgs.pkg-config pkgs.libsecret ];
};
wtf =
npm.build {
src = "${inputs.direnv-vscode}";
inherit node_modules_attrs;
buildCommands = [ "echo y | npm run package" ];
installPhase = ''
mv ${vsix} $out
'';
};
in
pkgs.runCommand "wtf-fix-direnv-vscode" { } ''
mkdir -p $out/share/vscode/extensions
mkdir $out/ext
cd $out/ext
${pkgs.unzip}/bin/unzip ${wtf}
mv extension $out/share/vscode/extensions/vscode
''
)
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "rust";
publisher = "rust-lang";
version = "0.7.8";
sha256 = "sha256-Y33agSNMVmaVCQdYd5mzwjiK5JTZTtzTkmSGTQrSNg0=";
}
{
name = "vscode-autohide";
publisher = "sirmspencer";
version = "1.0.7";
sha256 = "sha256-VaG/eTE2BGbHAYgFdS31c47rgLZVjHGK+/U8MSYKDt8=";
}
];
};
xdg.configFile."nvim/coc-settings.json".source = pkgs.writeText "coc-settings.json" (builtins.toJSON {
languageserver = {
nix = {