mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
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:
@@ -2,7 +2,7 @@
|
|||||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||||
# for examples
|
# for examples
|
||||||
# Sets environment variables for login non-interactive shells (VS Code & Zed)
|
# 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
|
# If not running interactively, don't do anything
|
||||||
case $- in
|
case $- in
|
||||||
|
|||||||
@@ -1405,9 +1405,6 @@ map kitty_mod+right move_tab_forward
|
|||||||
|
|
||||||
#: }}}
|
#: }}}
|
||||||
|
|
||||||
background_opacity 0.95
|
|
||||||
background_blur 65
|
|
||||||
|
|
||||||
#: Advanced {{{
|
#: Advanced {{{
|
||||||
|
|
||||||
# shell .
|
# shell .
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
require("shared.text_settings").setup()
|
require("shared.text_settings").setup()
|
||||||
|
|
||||||
local function check_codelens_support()
|
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
|
for _, c in ipairs(clients) do
|
||||||
if c.server_capabilities.codeLensProvider then
|
if c.server_capabilities.codeLensProvider then
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ return {
|
|||||||
list = {
|
list = {
|
||||||
selection = {
|
selection = {
|
||||||
-- When `true`, will automatically select the first item in the completion list
|
-- 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
|
-- When `true`, inserts the completion item automatically when selecting it
|
||||||
auto_insert = true,
|
auto_insert = true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,11 +1,4 @@
|
|||||||
return {
|
return {
|
||||||
{
|
|
||||||
"easymotion/vim-easymotion",
|
|
||||||
keys = {
|
|
||||||
{ "<leader>j", "<Plug>(easymotion-s)", desc = "Easymotion jump" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"unblevable/quick-scope",
|
"unblevable/quick-scope",
|
||||||
init = function()
|
init = function()
|
||||||
@@ -18,6 +11,21 @@ return {
|
|||||||
end,
|
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
|
-- File Explorer: Neotree
|
||||||
{
|
{
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
|||||||
@@ -57,6 +57,14 @@ export HOMEBREW_CLEANUP_MAX_AGE_DAYS=30
|
|||||||
|
|
||||||
export DEV_CACHE_PATH="/media/${USER}/Projects/DevSetUps"
|
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 WGETRC="${XDG_CONFIG_HOME}/wgetrc" && [ ! -f "$WGETRC" ] && touch "$WGETRC"
|
||||||
export GNUPGHOME="${XDG_CONFIG_HOME}/gnupg"
|
export GNUPGHOME="${XDG_CONFIG_HOME}/gnupg"
|
||||||
export LESSHISTFILE="${XDG_STATE_HOME}/shell/lesshst"
|
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 N_PREFIX="${XDG_DATA_HOME}/n_node"
|
||||||
export PATH="$N_PREFIX/bin:$PATH"
|
export PATH="$N_PREFIX/bin:$PATH"
|
||||||
command -v npm >/dev/null 2>&1 && PATH="$(npm config get 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
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ let g:NERDTreeWinSize = 25
|
|||||||
" Map nerdtree to <Leader>e
|
" Map nerdtree to <Leader>e
|
||||||
" Changes the pwd and opens the VCS root
|
" Changes the pwd and opens the VCS root
|
||||||
" Placed here because ideavim doesn't understand :tcd
|
" 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
|
" Map easymotion Plugin to <Leader>j
|
||||||
nnoremap <leader>j <Plug>(easymotion-s)
|
nnoremap <leader>j <Plug>(easymotion-s)
|
||||||
|
|||||||
@@ -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
|
# Directories and Directory listings
|
||||||
dir_size(){
|
dir_size() {
|
||||||
if [ "$1" = "" ]; then
|
if [ "$1" = "" ]; then
|
||||||
dir="$PWD"
|
dir="$PWD"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ shfmt
|
|||||||
software-properties-common
|
software-properties-common
|
||||||
sqlite
|
sqlite
|
||||||
stylua
|
stylua
|
||||||
tmux
|
|
||||||
tokei
|
tokei
|
||||||
tree-sitter
|
tree-sitter
|
||||||
tree-sitter-cli
|
tree-sitter-cli
|
||||||
@@ -109,6 +108,7 @@ ripgrep
|
|||||||
simplescreenrecorder
|
simplescreenrecorder
|
||||||
solaar
|
solaar
|
||||||
syncthing
|
syncthing
|
||||||
|
tmux
|
||||||
ttf-mscorefonts-installer
|
ttf-mscorefonts-installer
|
||||||
ufw
|
ufw
|
||||||
vim
|
vim
|
||||||
|
|||||||
Reference in New Issue
Block a user