tmux and nvim clipboard passthrough, opencode system theme in tmux

This commit is contained in:
Matt Anderson
2026-08-03 10:11:36 -05:00
parent 66eac0c007
commit c1364f7ab7
4 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -10,8 +10,9 @@ vim.wo.number = true
vim.wo.relativenumber = true vim.wo.relativenumber = true
vim.g.mapleader = ' ' vim.g.mapleader = ' '
vim.o.splitright = true vim.o.splitright = true
vim.g.clipboard = "osc52"
vim.o.clipboard = "unnamedplus"
-- vim.o.scrolloff = 999 -- vim.o.scrolloff = 999
-- vim.o.clipboard="unnamedplus"
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown", pattern = "markdown",
+2 -1
View File
@@ -11,6 +11,8 @@ vim.wo.relativenumber = true
vim.g.mapleader = ' ' vim.g.mapleader = ' '
vim.o.splitright = true vim.o.splitright = true
vim.o.maxmempattern = 100000 vim.o.maxmempattern = 100000
vim.g.clipboard = "osc52"
vim.o.clipboard = "unnamedplus"
vim.cmd([[ vim.cmd([[
autocmd ColorScheme * highlight Statement cterm=NONE ctermfg=5 autocmd ColorScheme * highlight Statement cterm=NONE ctermfg=5
@@ -63,4 +65,3 @@ vim.cmd([[
-- ]]) -- ]])
-- autocmd ColorScheme * highlight Folded cterm=italic ctermfg=lightgray ctermbg=18 -- autocmd ColorScheme * highlight Folded cterm=italic ctermfg=lightgray ctermbg=18
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"$schema": "https://opencode.ai/config.json", "$schema": "https://opencode.ai/config.json",
"theme": "base16-default", "theme": "system",
"mcp": { "mcp": {
"playwright": { "playwright": {
"type": "local", "type": "local",
+5 -4
View File
@@ -1,6 +1,5 @@
# set-option -g default-command "exec /usr/local/bin/bash --login" # set-option -g default-command "exec /usr/local/bin/bash --login"
set-option -g status-style bg=default set-option -g status-style bg=default
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
# Enable mouse # Enable mouse
set -g mouse on set -g mouse on
@@ -35,11 +34,12 @@ set -s escape-time 0
# True color support # True color support
set -g default-terminal "tmux-256color" set -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ",*256col*:Tc" set -as terminal-features ',*:RGB,usstyle,osc7,clipboard'
# Allow OSC 11 background queries to pass through # Allow OSC 11 background queries to pass through
set -g allow-passthrough on set -g allow-passthrough on
set -ga terminal-features "*:osc7,RGB,usstyle,RGB" set -ga terminal-features "*:osc7,RGB,usstyle,RGB"
set -g set-clipboard on
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # truecolor underline set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # truecolor underline
@@ -51,7 +51,8 @@ set -g pane-active-border-style "fg=blue"
setw -g mode-keys vi setw -g mode-keys vi
bind -T copy-mode-vi 'v' send -X begin-selection bind -T copy-mode-vi 'v' send -X begin-selection
bind -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "pbcopy" bind -T copy-mode-vi Enter send -X copy-selection-and-cancel
bind -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# set -g status-right "#(date +'%I:%M %p')" # set -g status-right "#(date +'%I:%M %p')"
# set -g status-right "#(date +'%A, %B %d, %Y')" # set -g status-right "#(date +'%A, %B %d, %Y')"
@@ -64,7 +65,7 @@ bind o \
set status off set status off
# Reserve C-Space O for leaving OFF mode. # Reserve C-Space O for leaving OFF mode.
unbind -T off O unbind -q -T off O
bind -T off C-Space switch-client -T off-prefix bind -T off C-Space switch-client -T off-prefix
bind -T off-prefix O \ bind -T off-prefix O \