Compare commits

..

3 commits

Author SHA1 Message Date
b23be17545
tmux: add matugen theming 2026-02-21 19:33:40 +11:00
f872f2a1fe
tmux: remove all plugins 2026-02-21 19:33:25 +11:00
e4b49c7ed6
nvim: fix treesitter installing parsers again on startup 2026-02-21 17:55:40 +11:00
4 changed files with 57 additions and 16 deletions

View file

@ -77,6 +77,11 @@ input_path = './templates/vicinae.toml'
output_path = '~/.local/share/vicinae/themes/matugen.toml'
post_hook = 'vicinae theme set matugen'
[templates.tmux]
input_path = './templates/tmux.conf'
output_path = '~/.cache/matugen/tmux.conf'
post_hook = 'tmux source-file ~/.cache/matugen/tmux.conf'
[templates.macos-accent]
colors_to_compare = [
{ name = "-1", color = "#696766" }, # graphite

View file

@ -0,0 +1,13 @@
set -g status-style "bg=default"
set -g status-fg "{{ colors.tertiary.default.hex }}"
set -g status-left "#[bg={{ colors.primary_container.default.hex }},fg={{ colors.on_primary_container.default.hex }}]#{?client_prefix,#[reverse]#[bg={{ colors.on_secondary_container.default.hex }}]#[fg=black]#[noreverse]} #S "
set -g status-right "#[fg={{ colors.secondary.default.hex }}]%d/%m #[bg={{ colors.primary_container.default.hex }},fg={{ colors.on_primary_container.default.hex }}] #H "
# max allowed lenth for statuses to flow into
set -g status-left-length 20
set -g status-right-length 20
# tab bar
set -g window-status-format " #I #W "
set -g window-status-current-format " #I #W "
set -g window-status-current-style bg={{ colors.secondary_container.default.hex }},fg={{ colors.on_secondary_container.default.hex }},bold

View file

@ -1,9 +1,4 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter")
configs.install({ "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html", "markdown", "go" })
end
}

View file

@ -1,3 +1,7 @@
#
# keybindings
#
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
@ -9,33 +13,57 @@ bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind r source-file ~/.config/tmux/tmux.conf
# start ajacent terminals with same path
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
#
# options
#
# set variables
set -g mouse on
set -g history-limit 100000
# start panes and windows at index 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1
set-option -g renumber-windows on # if win 2 get deleted, win 3 gets renamed to win 2
set -gq allow-passthrough on
set -g visual-activity off
set -g set-clipboard on
set -g focus-events on # lets programs know if they loose focus
set -g status-keys emacs # emacs bindings in tmux prompt ( prefix + :)
set -g default-terminal "screen-256color" # upgrade TERM variable to have more colours
set -g display-time 4000 # display tmux messages for 4s
#
# status bar
#
set -g status-style "bg=default"
set -g status-fg "white"
set -g status-left "#[bg=purple,fg=black]#{?client_prefix,#[reverse]#[bg=yellow]#[noreverse]} #S "
set -g status-right "%d/%m #[bg=purple,fg=black] #H "
# max allowed lenth for statuses to flow into
set -g status-left-length 20
set -g status-right-length 20
# tab bar
set -g window-status-format " #I #W "
set -g window-status-current-format " #I #W "
set -g window-status-current-style bg=black,fg=blue,bold
# fix undercurls: https://github.com/folke/tokyonight.nvim#fix-undercurls-in-tmux
set -g default-terminal "${TERM}"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
set -gq allow-passthrough on
# plugins
# got from: https://github.com/tmux-plugins/tpm/blob/master/docs/automatic_tpm_installation.md, changed to a more sensible install dir
if "test ! -d ~/.local/share/tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.local/share/tmux/plugins/tpm && ~/.local/share/tmux/plugins/tpm/bin/install_plugins'"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin "janoamaral/tokyo-night-tmux"
run '~/.local/share/tmux/plugins/tpm/tpm'
# matugen
if "test -f ~/.cache/matugen/tmux.conf" \
"source-file ~/.cache/matugen/tmux.conf"