From 79563ad954f246de120c8530405bebdd8b793cbb Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Fri, 26 Sep 2025 10:04:23 +0200 Subject: [PATCH] Updated scripts --- config/nvim/init.lua | 3 ++- update_arch.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 041a1e3..ff97da5 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -181,6 +181,7 @@ require("nvim-tree").setup({ view = { -- Ensures files open in the window where nvim-tree was triggered preserve_window_proportions = true, + centralize_selection = true, }, update_focused_file = { enable = true, -- update the tree to focus the current file @@ -306,7 +307,7 @@ map("n", "N", "Nzzzv", { noremap = true, silent = true }) map("n", "g", ":LazyGitCurrentFile", { noremap = true, silent = true }) -- File browser -map("n", "e", ":NvimTreeToggle", { noremap = true, silent = true }) +map("n", "e", ":NvimTreeFindFileToggle!", { noremap = true, silent = true }) map("n", "f", ":Pick files", { noremap = true, silent = true }) map("n", "h", ":Pick help", { noremap = true, silent = true }) diff --git a/update_arch.sh b/update_arch.sh index 911829a..6dfbf87 100755 --- a/update_arch.sh +++ b/update_arch.sh @@ -318,7 +318,7 @@ fi if [ "${ROLES[DESKTOP_WORK]}" == "yes" ]; then printf -- '\033[33m Installing desktop work utilities\n\033[37m' - sudo pacman --noconfirm --needed -S kicad freecad + sudo pacman --noconfirm --needed -S kicad kicad-library freecad flatpak install -y flathub org.kde.krita flatpak install -y flathub com.prusa3d.PrusaSlicer flatpak install -y flathub com.jgraph.drawio.desktop