From 624920b2abe3b7f2bbdc36d17aa35f3ce6752e6c Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Tue, 22 Apr 2025 10:07:34 +0300 Subject: [PATCH] chore(config): nvim, tmux and wezterm tweaks --- config/nvim/lua/plugins/folke.lua | 4 ++++ config/tmux/tmux.conf | 1 + config/wezterm/wezterm.lua | 21 ++++++++++++++++++--- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/config/nvim/lua/plugins/folke.lua b/config/nvim/lua/plugins/folke.lua index b2afbf1..9c02272 100644 --- a/config/nvim/lua/plugins/folke.lua +++ b/config/nvim/lua/plugins/folke.lua @@ -2,6 +2,7 @@ return { -- A collection of small QoL plugins for Neovim -- https://github.com/folke/snacks.nvim { + ---@module 'snacks' 'folke/snacks.nvim', priority = 1000, lazy = false, @@ -42,6 +43,7 @@ return { -- replaces the UI for messages, cmdline and the popupmenu. -- https://github.com/folke/noice.nvim { + ---@module 'noice' 'folke/noice.nvim', event = 'VeryLazy', dependencies = { @@ -122,10 +124,12 @@ return { -- trouble your code is causing. -- https://github.com/folke/trouble.nvim { + ---@module 'trouble' 'folke/trouble.nvim', lazy = false, cmd = 'Trouble', dependencies = { 'nvim-tree/nvim-web-devicons' }, + ---@type trouble.Config opts = { auto_preview = true, auto_fold = true, diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 3fef2a7..8f6d9ae 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -52,6 +52,7 @@ if-shell '[ "$DEBUG" = "1" ]' 'set -g debug-file ~/.cache/tmux-debug.log' set -g pane-active-border-style "fg=#7aa2f7" set -g pane-border-style "fg=#3b4261" +set -g status-style "bg=default" set -g status-justify "left" set -g status-left '' set -g status-left-length "0" diff --git a/config/wezterm/wezterm.lua b/config/wezterm/wezterm.lua index 0ad03ca..2823b5e 100644 --- a/config/wezterm/wezterm.lua +++ b/config/wezterm/wezterm.lua @@ -17,16 +17,31 @@ config.font = wezterm.font_with_fallback { 'JetBrains Mono', 'Symbols Nerd Font Mono', } -config.harfbuzz_features = { 'zero', 'ss01', 'cv05' } +config.font_shaper = 'Harfbuzz' +config.harfbuzz_features = { 'calt=1', 'clig=1', 'liga=1' } --- Make the window a bit transparent -config.window_background_opacity = 0.96 +config.selection_word_boundary = ' \t\n{[}]()"\'`,;:' + +-- Window configuration +config.window_background_opacity = 0.95 +config.window_decorations = 'RESIZE' +config.macos_window_background_blur = 10 +config.window_padding = { + left = 5, + right = 5, + top = 5, + bottom = 5, +} -- Don't show tab bar config.enable_tab_bar = false -- Fix alt on macOS config.send_composed_key_when_left_alt_is_pressed = true +config.send_composed_key_when_right_alt_is_pressed = true + +-- Scrolling deactivated, using tmux for that +config.scrollback_lines = 0 -- Function to detect the theme based on appearance function Scheme_for_appearance(appearance)