From 1a1f25be32bb99ef6b50b298d04183d329ffdf09 Mon Sep 17 00:00:00 2001 From: Pratik Tripathy Date: Tue, 9 Sep 2025 17:02:05 +0530 Subject: [PATCH] chore: Annoyance fixes across all - bashrc: source `.profile` and not `profile` - kitty: Remove background-blur, it was making terminal slow - kitty: ssh: Rename the terminal to `xterm-256color` cause most cloud linux don't have kitty terminal info by default - nvim: `get_active_clients` marked for removal by nvim, replaced - nvim: completion: don't auto complete on command mode - nvim: Use `flash.nvim` for jumping instead of `vim-easymotion` - vim: Open file tree `e` -> `` - profile: KVM: Use the system access by default --- common/.bashrc | 2 +- common/.config/kitty/kitty.conf | 3 --- .../.config/nvim/after/ftplugin/markdown.lua | 2 +- .../.config/nvim/lua/plugins/completion.lua | 2 +- .../.config/nvim/lua/plugins/navigation.lua | 22 +++++++++++++------ common/.profile | 14 +++++++----- common/.vim/plugin_config.vim | 2 +- linux/.config/shell/aliases_linux.sh | 7 ++++-- scripts/package-list-os | 2 +- 9 files changed, 33 insertions(+), 23 deletions(-) diff --git a/common/.bashrc b/common/.bashrc index 8fdbd95..bdc7f84 100644 --- a/common/.bashrc +++ b/common/.bashrc @@ -2,7 +2,7 @@ # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # Sets environment variables for login non-interactive shells (VS Code & Zed) -[ -z "$XDG_CONFIG_HOME" ] && source "$HOME"/profile +[ -z "$XDG_CONFIG_HOME" ] && source "$HOME"/.profile # If not running interactively, don't do anything case $- in diff --git a/common/.config/kitty/kitty.conf b/common/.config/kitty/kitty.conf index 5e46c78..76afad9 100644 --- a/common/.config/kitty/kitty.conf +++ b/common/.config/kitty/kitty.conf @@ -1405,9 +1405,6 @@ map kitty_mod+right move_tab_forward #: }}} -background_opacity 0.95 -background_blur 65 - #: Advanced {{{ # shell . diff --git a/common/.config/nvim/after/ftplugin/markdown.lua b/common/.config/nvim/after/ftplugin/markdown.lua index ffc28f0..cff6732 100644 --- a/common/.config/nvim/after/ftplugin/markdown.lua +++ b/common/.config/nvim/after/ftplugin/markdown.lua @@ -1,7 +1,7 @@ require("shared.text_settings").setup() local function check_codelens_support() - local clients = vim.lsp.get_active_clients({ bufnr = 0 }) + local clients = vim.lsp.get_clients({ bufnr = 0 }) for _, c in ipairs(clients) do if c.server_capabilities.codeLensProvider then return true diff --git a/common/.config/nvim/lua/plugins/completion.lua b/common/.config/nvim/lua/plugins/completion.lua index 364c2e3..e959b75 100644 --- a/common/.config/nvim/lua/plugins/completion.lua +++ b/common/.config/nvim/lua/plugins/completion.lua @@ -89,7 +89,7 @@ return { list = { selection = { -- When `true`, will automatically select the first item in the completion list - preselect = true, + preselect = false, -- When `true`, inserts the completion item automatically when selecting it auto_insert = true, }, diff --git a/common/.config/nvim/lua/plugins/navigation.lua b/common/.config/nvim/lua/plugins/navigation.lua index 14b2787..4080eda 100644 --- a/common/.config/nvim/lua/plugins/navigation.lua +++ b/common/.config/nvim/lua/plugins/navigation.lua @@ -1,11 +1,4 @@ return { - { - "easymotion/vim-easymotion", - keys = { - { "j", "(easymotion-s)", desc = "Easymotion jump" }, - }, - }, - { "unblevable/quick-scope", init = function() @@ -18,6 +11,21 @@ return { end, }, + { + "folke/flash.nvim", + event = "VeryLazy", + ---@type Flash.Config + opts = { + highlight = { backdrop = false }, + modes = { char = { enabled = false } }, + }, + -- stylua: ignore + keys = { + { "j", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash jump" }, + { "cH", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Highlight a code block" }, + }, + }, + -- File Explorer: Neotree { "nvim-neo-tree/neo-tree.nvim", diff --git a/common/.profile b/common/.profile index a6cc127..5ccf8a0 100644 --- a/common/.profile +++ b/common/.profile @@ -57,6 +57,14 @@ export HOMEBREW_CLEANUP_MAX_AGE_DAYS=30 export DEV_CACHE_PATH="/media/${USER}/Projects/DevSetUps" +# Podman's Docker-compatible socket (rootless) +# Make lazydocker work +DOCKER_HOST="unix:///run/user/$(id -u)/podman/podman.sock" +export DOCKER_HOST +export PODMAN_COMPOSE_WARNING_LOGS=false + +export LIBVIRT_DEFAULT_URI="qemu:///system" + export WGETRC="${XDG_CONFIG_HOME}/wgetrc" && [ ! -f "$WGETRC" ] && touch "$WGETRC" export GNUPGHOME="${XDG_CONFIG_HOME}/gnupg" export LESSHISTFILE="${XDG_STATE_HOME}/shell/lesshst" @@ -117,9 +125,3 @@ export NODE_REPL_HISTORY="${XDG_CONFIG_HOME}/node/node_repl_history" export N_PREFIX="${XDG_DATA_HOME}/n_node" export PATH="$N_PREFIX/bin:$PATH" command -v npm >/dev/null 2>&1 && PATH="$(npm config get prefix)/bin:$PATH" - -# Podman's Docker-compatible socket (rootless) -# Make lazydocker work -DOCKER_HOST="unix:///run/user/$(id -u)/podman/podman.sock" -export DOCKER_HOST -export PODMAN_COMPOSE_WARNING_LOGS=false diff --git a/common/.vim/plugin_config.vim b/common/.vim/plugin_config.vim index 94c165b..605b9fe 100644 --- a/common/.vim/plugin_config.vim +++ b/common/.vim/plugin_config.vim @@ -9,7 +9,7 @@ let g:NERDTreeWinSize = 25 " Map nerdtree to e " Changes the pwd and opens the VCS root " Placed here because ideavim doesn't understand :tcd -nnoremap e :tcd %:h :NERDTreeToggleVCS +nnoremap :tcd %:h :NERDTreeToggleVCS " Map easymotion Plugin to j nnoremap j (easymotion-s) diff --git a/linux/.config/shell/aliases_linux.sh b/linux/.config/shell/aliases_linux.sh index 52f7e8c..90df5a4 100644 --- a/linux/.config/shell/aliases_linux.sh +++ b/linux/.config/shell/aliases_linux.sh @@ -1,7 +1,10 @@ -#!/bin/sh +#!/bin/bash + +# Kitty & Ghostty terminfo aren't available on most servers +alias ssh="TERM=xterm-256color ssh" # Directories and Directory listings -dir_size(){ +dir_size() { if [ "$1" = "" ]; then dir="$PWD" else diff --git a/scripts/package-list-os b/scripts/package-list-os index 386de92..3538300 100644 --- a/scripts/package-list-os +++ b/scripts/package-list-os @@ -31,7 +31,6 @@ shfmt software-properties-common sqlite stylua -tmux tokei tree-sitter tree-sitter-cli @@ -109,6 +108,7 @@ ripgrep simplescreenrecorder solaar syncthing +tmux ttf-mscorefonts-installer ufw vim