Add Omarchy integration: theme catalog hot-reload + OSC52 clipboard
Intrepid now installs Omarchy's full colorscheme catalog and hot-reloads by reading the theme spec omarchy-theme-set writes to ~/.local/state/omarchy/current/theme/neovim.lua, watched via vim.uv (no lazy.nvim here, so this replicates its file-watch + reload behavior directly). Other hosts are unaffected. Also ports Omarchy's OSC52 remote-clipboard module so yanks still reach the local Wayland clipboard/tmux/SSH client, matching the default Omarchy nvim config's behavior in those sessions.
This commit is contained in:
8
init.lua
8
init.lua
@@ -2,6 +2,7 @@ local vim = vim
|
||||
local host = vim.loop.os_gethostname()
|
||||
obsidian_dir = "~/Documents/Notebooks"
|
||||
require("options") -- ./lua/options.lua
|
||||
require("remote_clipboard").setup() -- ./lua/remote_clipboard.lua
|
||||
require("plugins") -- ./lua/plugins.lua
|
||||
require("utils.t3_functions") -- ./lua/utils/t3_functions.lua
|
||||
require("obsidian_config") -- ./lua/obsidian_config.lua
|
||||
@@ -104,7 +105,8 @@ if host == "xps13" then
|
||||
-- })
|
||||
-- })
|
||||
elseif host == "Intrepid" then
|
||||
cyberdream()
|
||||
-- Uses the full Omarchy theme catalog instead of a fixed colorscheme;
|
||||
-- see set_colorscheme()/VimEnter below for the actual hot-reload wiring.
|
||||
-- require('tokyonight').setup({
|
||||
-- style = "storm", -- "storm", "moon", "day", "night"
|
||||
-- transparent = false, -- Enable transparent background
|
||||
@@ -164,7 +166,9 @@ end
|
||||
local function set_colorscheme()
|
||||
if want_truecolor() then
|
||||
vim.o.termguicolors = true
|
||||
if not pcall(vim.cmd.colorscheme, "cyberdream") then
|
||||
if host == "Intrepid" then
|
||||
require("omarchy_theme").setup()
|
||||
elseif not pcall(vim.cmd.colorscheme, "cyberdream") then
|
||||
pcall(vim.cmd.colorscheme, "habamax")
|
||||
end
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user