# VSCodium configuration

{ config, pkgs, ... }:

{
  programs.vscode = {
    # Enable VSCodium
    enable = true;
    package = pkgs.vscodium;
    # Do not notify for updates
    enableExtensionUpdateCheck = false;
    # Install extensions by their ID
    extensions = with pkgs.vscode-extensions; [
      jnoortheen.nix-ide            # Nix support
      ms-python.python              # Python support
      ms-python.black-formatter     # Python formatter
      ms-pyright.pyright            # Python LSP
      rust-lang.rust-analyzer       # Rust LSP
      vadimcn.vscode-lldb           # LLDB debugger
      bungcip.better-toml           # Better TOML support
      llvm-vs-code-extensions.vscode-clangd  # C/C++ LSP
    ];
    # Configure user settings
    userSettings = {
      "editor.minimap.enabled" = false;
      "editor.wordwrap" = "on";
    };
  };
}