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 `<leader>e` -> `<leader><tab>`
- profile: KVM: Use the system access by default
This commit is contained in:
Pratik Tripathy
2025-09-09 17:02:05 +05:30
parent b7a52d44d3
commit 1a1f25be32
9 changed files with 33 additions and 23 deletions

View File

@@ -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

View File

@@ -1405,9 +1405,6 @@ map kitty_mod+right move_tab_forward
#: }}}
background_opacity 0.95
background_blur 65
#: Advanced {{{
# shell .

View File

@@ -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

View File

@@ -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,
},

View File

@@ -1,11 +1,4 @@
return {
{
"easymotion/vim-easymotion",
keys = {
{ "<leader>j", "<Plug>(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 = {
{ "<leader>j", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash jump" },
{ "<leader>cH", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Highlight a code block" },
},
},
-- File Explorer: Neotree
{
"nvim-neo-tree/neo-tree.nvim",

View File

@@ -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

View File

@@ -9,7 +9,7 @@ let g:NERDTreeWinSize = 25
" Map nerdtree to <Leader>e
" Changes the pwd and opens the VCS root
" Placed here because ideavim doesn't understand :tcd
nnoremap <leader>e :tcd %:h<CR> :NERDTreeToggleVCS<CR>
nnoremap <leader><TAB> :tcd %:h<CR> :NERDTreeToggleVCS<CR>
" Map easymotion Plugin to <Leader>j
nnoremap <leader>j <Plug>(easymotion-s)