From bb453be9e88697a8c01b952ea79e2d2460b54f81 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 7 Nov 2025 14:45:36 -0600 Subject: [PATCH] Small changes from here and there --- src_files/.config/aerospace/aerospace.toml | 4 ++-- src_files/.config/nvim/lua/plugins_lazy/treesitter.lua | 6 ++++-- src_files/.config/obsidian/hotkeys.json | 5 ++++- src_files/.config/tmux/tmux.conf | 2 ++ src_files/.local/scripts/theme-set | 2 -- theme_config.sh | 2 +- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src_files/.config/aerospace/aerospace.toml b/src_files/.config/aerospace/aerospace.toml index d2dfb94..06e39eb 100644 --- a/src_files/.config/aerospace/aerospace.toml +++ b/src_files/.config/aerospace/aerospace.toml @@ -51,7 +51,7 @@ default-root-container-orientation = 'vertical' # opts: horizontal vertical auto cmd-7 = 'workspace 7' cmd-8 = 'workspace 8' cmd-9 = 'workspace 9' - cmd-0 = 'workspace 0' + cmd-0 = 'workspace 10' cmd-shift-1 = 'move-node-to-workspace 1' cmd-shift-2 = 'move-node-to-workspace 2' cmd-shift-3 = 'move-node-to-workspace 3' @@ -61,7 +61,7 @@ default-root-container-orientation = 'vertical' # opts: horizontal vertical auto cmd-shift-7 = 'move-node-to-workspace 7' cmd-shift-8 = 'move-node-to-workspace 8' cmd-shift-9 = 'move-node-to-workspace 9' - cmd-shift-0 = 'move-node-to-workspace 0' + cmd-shift-0 = 'move-node-to-workspace 10' cmd-shift-semicolon = 'mode service' diff --git a/src_files/.config/nvim/lua/plugins_lazy/treesitter.lua b/src_files/.config/nvim/lua/plugins_lazy/treesitter.lua index 482f652..964ec63 100644 --- a/src_files/.config/nvim/lua/plugins_lazy/treesitter.lua +++ b/src_files/.config/nvim/lua/plugins_lazy/treesitter.lua @@ -14,12 +14,14 @@ return { }, sync_install = false, -- install `ensure_installed` parsers synchronously auto_install = true, -- install missing on BufEnter, requires tree-sitter CLI - ignore_install = {}, + ignore_install = { + "csv", + }, -- indent = { enable = true }, -- TODO: do i want this? highlight = { enable = true, -- `false` will disable the whole extension disable = function(lang, buf) - for i, v in ipairs({ "html", }) do + for i, v in ipairs({ "html", "csv", }) do if lang == v then print("treesitter disabled for this language") return true diff --git a/src_files/.config/obsidian/hotkeys.json b/src_files/.config/obsidian/hotkeys.json index 379229b..c4243dc 100644 --- a/src_files/.config/obsidian/hotkeys.json +++ b/src_files/.config/obsidian/hotkeys.json @@ -1,6 +1,6 @@ { "markdown:toggle-preview": [ - { "modifiers": [ "Ctrl", "Shift" ], "key": "R" } + { "modifiers": [ "Ctrl", "Shift" ], "key": "E" } ], "switcher:open": [ { "modifiers": [ "Ctrl" ], "key": "F" } @@ -11,6 +11,9 @@ "app:toggle-right-sidebar": [ { "modifiers": [ "Ctrl", "Shift" ], "key": "F" } ], + "editor:toggle-readable-line-length": [ + { "modifiers": [ "Ctrl", "Shift" ], "key": "R" } + ], "file-explorer:reveal-active-file": [ { "modifiers": [ "Ctrl", "Shift" ], "key": "N" } ] diff --git a/src_files/.config/tmux/tmux.conf b/src_files/.config/tmux/tmux.conf index 8b1e29c..f6c63f5 100644 --- a/src_files/.config/tmux/tmux.conf +++ b/src_files/.config/tmux/tmux.conf @@ -12,6 +12,7 @@ unbind-key f; unbind-key C-f; unbind-key s; unbind-key C-s unbind-key c; unbind-key n; unbind-key p unbind-key q; unbind-key w unbind-key C-o; unbind-key C-n; unbind-key C-p; unbind-key C-l; unbind-key C-h +unbind-key 0 # vim-like movement stuff set-window-option -g mode-keys vi @@ -41,4 +42,5 @@ bind-key -r C-l switch-client -l bind-key -r C-o last-window bind-key -r C-n next-window bind-key -r C-p previous-window +bind-key 0 select-window -t 10 diff --git a/src_files/.local/scripts/theme-set b/src_files/.local/scripts/theme-set index 0e7dad4..2790252 100755 --- a/src_files/.local/scripts/theme-set +++ b/src_files/.local/scripts/theme-set @@ -36,8 +36,6 @@ theme_update_neovim() { done } -########################################################################################## - [[ ! -z $1 ]] && raw_target="$1" || raw_target=$( find $DIR_THEME_SETTINGS -mindepth 1 -maxdepth 1 -type d -exec basename -- {} \; | diff --git a/theme_config.sh b/theme_config.sh index 12fbde4..94ab1a8 100755 --- a/theme_config.sh +++ b/theme_config.sh @@ -33,7 +33,7 @@ sym_link $DIR_THEME_SETTINGS/$default_theme $DIR_THEME_SETTINGS/.current-theme sym_link $DIR_THEME_SETTINGS/.current-theme/kitty.conf $XDG_CONFIG_HOME/kitty/theme.conf sym_link $DIR_THEME_SETTINGS/.current-theme/tmux.conf $XDG_CONFIG_HOME/tmux/theme.conf sym_link $DIR_THEME_SETTINGS/.current-theme/neovim.lua $XDG_CONFIG_HOME/nvim/current-theme -# TODO: finish theme work, set needed links per theme-set script +# TODO: set additional links per theme-set script echo "setting the default theme: $default_theme" $DIR_SCRIPTS/theme-set $default_theme