From 749f3570a4ac2df70fb052c3a3e478e445a0c353 Mon Sep 17 00:00:00 2001 From: moni Date: Sun, 13 Oct 2024 06:30:36 +0800 Subject: [PATCH] treewide: remove swathes of unused code --- modules/shared/home-manager/config/init.lua | 94 ---------------- users/moni/config/rose-pine.theme.css | 118 -------------------- users/omni/home.nix | 7 -- 3 files changed, 219 deletions(-) delete mode 100644 modules/shared/home-manager/config/init.lua delete mode 100644 users/moni/config/rose-pine.theme.css diff --git a/modules/shared/home-manager/config/init.lua b/modules/shared/home-manager/config/init.lua deleted file mode 100644 index 01cb331..0000000 --- a/modules/shared/home-manager/config/init.lua +++ /dev/null @@ -1,94 +0,0 @@ -require('leap').create_default_mappings() - -if not vim.g.vscode then - vim.g.mapleader = " " - vim.opt.termguicolors = true - vim.opt.clipboard = "unnamedplus" - vim.opt.mouse = "a" - vim.opt.encoding = "utf-8" - vim.opt.tabstop = 2 - vim.opt.shiftwidth = 2 - vim.opt.expandtab = true - vim.opt.cmdheight = 0 - vim.opt.laststatus = 0 - - local auto_dark_mode = require("auto-dark-mode") - - auto_dark_mode.setup({ - update_interval = 500, - - set_dark_mode = function() - vim.api.nvim_set_option('background', 'dark') - vim.cmd('colorscheme rose-pine-main') - end, - - set_light_mode = function() - vim.api.nvim_set_option('background', 'light') - vim.cmd('colorscheme rose-pine-dawn') - end, - }) - - auto_dark_mode.init() - - local cmp = require("cmp") - - cmp.setup({ - preselect = cmp.PreselectMode.None, - snippet = { - expand = function(args) - vim.fn["vsnip#anonymous"](args.body) - end, - }, - mapping = { - [""] = cmp.mapping.select_prev_item(), - [""] = cmp.mapping.select_next_item(), - -- Add tab support - [""] = cmp.mapping.select_prev_item(), - [""] = cmp.mapping.select_next_item(), - [""] = cmp.mapping.scroll_docs(-4), - [""] = cmp.mapping.scroll_docs(4), - [""] = cmp.mapping.complete(), - [""] = cmp.mapping.close(), - [""] = cmp.mapping.confirm({ - behavior = cmp.ConfirmBehavior.Insert, - select = true, - }), - }, - - -- Installed sources - sources = { - { name = "nvim_lsp" }, - { name = "vsnip" }, - { name = "path" }, - { name = "buffer" }, - }, - }) - - local ih = require("inlay-hints") - - require("rust-tools").setup({ - tools = { - on_initialized = function() ih.set_all() end, - inlay_hints = { auto = true } - }, - - server = { standalone = true, - on_attach = function(c, b) ih.on_attach(c, b) end - } - }) - - local lsp = require("lspconfig") - - lsp.zls.setup({}) - --lsp.ccls.setup({}) - lsp.clangd.setup({}) - - require("nvim-treesitter.configs").setup({ - highlight = { - enable = true, - }, - }) -end - - - diff --git a/users/moni/config/rose-pine.theme.css b/users/moni/config/rose-pine.theme.css deleted file mode 100644 index eb352b4..0000000 --- a/users/moni/config/rose-pine.theme.css +++ /dev/null @@ -1,118 +0,0 @@ -/** -* @name Rosé Pine -* @author blueb -* @authorId 403390454273409028 -* @version 3.0.9 -* @description All natural pine, faux fur and a bit of soho vibes for the classy minimalist. -* @source https://github.com/rose-pine/discord -* @updateUrl https://github.com/rose-pine/discord/blob/rose-pine.theme.css -*/ - -.theme-dark { - --background-primary: #26233a; - --background-secondary: #1f1d2e; - --background-secondary-alt: #26233a; - --channeltextarea-background: #2c2842; - --background-tertiary: #191724; - --background-accent: #ebbcba; - --text-normal: #dad7fd; - --text-spotify: #9ccfd8; - --text-muted: #4f4c58; - --text-link: #31748f; - --background-floating: #1f1d2e; - --header-primary: #e0def4; - --header-secondary: #9ccfd8; - --header-spotify: #9ccfd8; - --interactive-normal: #e0def4; - --interactive-hover: #c4a7e7; - --interactive-active: #e0def4; - --ping: #eb6f92; - --background-modifier-selected: #26233ab4; - --scrollbar-thin-thumb: #191724; - --scrollbar-thin-track: transparent; - --scrollbar-auto-thumb: #191724; - --scrollbar-auto-track: transparent; -} - -.theme-light { - --background-primary: #faf4ed; - --background-secondary: #fffaf3; - --background-secondary-alt: #f2e9de; - --channeltextarea-background: #f2e9de; - --background-tertiary: #f2e9de; - --background-accent: #d7827e; - --text-normal: #575279; - --text-spotify: #575279; - --text-muted: #6e6a86; - --text-link: #286983; - --background-floating: #f2e9de; - --header-primary: #575279; - --header-secondary: #575279; - --header-spotify: #56949f; - --interactive-normal: #575279; - --interactive-hover: #6e6a86; - --interactive-active: #575279; -} - -body { - --font-display: "SF Pro Text"; -} - -:root { - --font-code: "SF Mono"; -} - -code { - font-family: var(--font-code); -} - -div, .messageContent-2t3eCI, .username-3_PJ5r, .username-h_Y3Us, .text-sm-normal-AEQz4v, .text-xs-normal-3O7EaX { - font-family: var(--font-display); -} - -.body-2wLx-E, .headerTop-3GPUSF, .bodyInnerWrapper-2bQs1k, .footer-3naVBw { - background-color: var(--background-tertiary); -} - -.title-17SveM, .name-3Uvkvr { - font-size: 14px; -} - -.panels-3wFtMD { - background-color: var(--background-secondary); - padding-left: 5px; - padding-right: 5px; -} - -.username-h_Y3Us { - font-size: 16px; -} - -.peopleColumn-1wMU14, .panels-j1Uci_, .peopleColumn-29fq28, .peopleList-2VBrVI, .content-2hZxGK, .header-1zd7se, .root-g14mjS, .small-23Atuv, .fullscreenOnMobile-ixj0e3, .list-3FIpnh { - background-color: var(--background-secondary); -} - -.textArea-12jD-V, .lookBlank-3eh9lL, .threadSidebar-1o3BTy, section.title-31SJ6t.forumOrHome-2VTX6r.container-ZMc96U.themed-Hp1KC_, .scrollableContainer-2NUZem, .perksModalContentWrapper-3RHugb, .theme-dark .footer-31IekZ, .theme-light .footer-31IekZ{ - background-color: var(--background-tertiary); -} - -.numberBadge-2s8kKX, .base-PmTxvP, .baseShapeRound-1Mm1YW, .bar-30k2ka, .unreadMentionsBar-1Bu1dC, .mention-1f5kbO, .active-1SSsBb, .disableButton-220a9y { - background-color: var(--ping) !important; -} - -.lookOutlined-3sRXeN.colorRed-1TFJan, .lookOutlined-3sRXeN.colorRed-1TFJan { - color: var(--ping) !important; -} - -.header-3OsQeK, .container-ZMc96U { - box-shadow: none!important; - border: none!important; -} - -.content-1gYQeQ, .layout-1qmrhw, .inputDefault-3FGxgL, .input-2g-os5, .input-2z42oC, .role-2TIOKu, .searchBar-jGtisZ { - border-radius: 6px; -} - -.layout-1qmrhw:hover, .content-1gYQeQ:hover { - background-color: var(--background-modifier-selected)!important; -} diff --git a/users/omni/home.nix b/users/omni/home.nix index 6606dbb..5aa2041 100644 --- a/users/omni/home.nix +++ b/users/omni/home.nix @@ -135,13 +135,6 @@ }; }; - discocss = { - enable = false; - discordAlias = true; - discordPackage = pkgs.discord-canary; - css = import ./config/discocss-css.nix { inherit (config) colorscheme; }; - }; - ncspot.enable = true; waybar = {