- NVIM: Mapped '<leader>xt' to close-tab, Noice message for directory

change sent to bottom  - was too distracting
- Kitty: Made the configuration more portable across *unix OSes
This commit is contained in:
Pratik Tripathy
2024-03-21 13:11:21 +05:30
parent 39992add32
commit ea30b2722f
6 changed files with 88 additions and 83 deletions

View File

@@ -93,9 +93,7 @@ if ! shopt -oq posix; then
fi fi
fi fi
################################################################################
############### Everything below this line are customizations ################## ############### Everything below this line are customizations ##################
################################################################################
# Do not let globbing complain on no match # Do not let globbing complain on no match
shopt -s nullglob shopt -s nullglob
@@ -117,7 +115,7 @@ jazz_my_prompt() {
local ex=$? local ex=$?
# Capture the last command's execution time # Capture the last command's execution time
timer_show=$(($SECONDS - $timer)) timer_show=$((SECONDS - timer))
unset timer unset timer
#----------------------------------------------------------------------------# #----------------------------------------------------------------------------#
@@ -178,14 +176,14 @@ HISTFILE="$XDG_STATE_HOME/shell/bash_history"
[ ! -f "$XDG_CONFIG_HOME/exercism/exercism_completion.bash" ] || source "$XDG_CONFIG_HOME/exercism/exercism_completion.bash" [ ! -f "$XDG_CONFIG_HOME/exercism/exercism_completion.bash" ] || source "$XDG_CONFIG_HOME/exercism/exercism_completion.bash"
if command -v zoxide >/dev/null; then
eval "$(zoxide init --cmd cd bash)"
fi
# [ctrl+r]:replaces shell command search # [ctrl+r]:replaces shell command search
# [ctrl+t]:fzf & over the files & directories under the current one & paste it to prompt # [ctrl+t]:fzf & over the files & directories under the current one & paste it to prompt
# [alt+c] :fzf & cd into a directory under the current one # [alt+c] :fzf & cd into a directory under the current one
[ -f $XDG_STATE_HOME/shell/fzf.bash ] && source $XDG_STATE_HOME/shell/fzf.bash [ -f "$XDG_STATE_HOME/shell/fzf.bash" ] && source "$XDG_STATE_HOME/shell/fzf.bash"
if command -v zoxide >/dev/null; then
eval "$(zoxide init --cmd cd bash)"
fi
# Source aliases and shell functions # Source aliases and shell functions
for alias_file in "$XDG_CONFIG_HOME"/shell/*.sh; do source "$alias_file"; done for alias_file in "$XDG_CONFIG_HOME"/shell/*.sh; do source "$alias_file"; done

View File

@@ -1051,7 +1051,7 @@ map ctrl+shift+l kitten pass_keys.py right ctrl+shift+l "^.* - nvim$"
# Redundant, they are used for scrollback.nvim as well # Redundant, they are used for scrollback.nvim as well
# But, this would work even if we uninstall scrollback.nvim # But, this would work even if we uninstall scrollback.nvim
listen_on unix:@mykitty listen_on unix:/tmp/mykitty
allow_remote_control yes allow_remote_control yes
#: Tab bar {{{ #: Tab bar {{{

View File

@@ -88,3 +88,6 @@ vim.keymap.set("n", "]e", diagnostic_goto(true, "ERROR"), { desc = "Next Error"
vim.keymap.set("n", "[e", diagnostic_goto(false, "ERROR"), { desc = "Prev Error" }) vim.keymap.set("n", "[e", diagnostic_goto(false, "ERROR"), { desc = "Prev Error" })
vim.keymap.set("n", "]w", diagnostic_goto(true, "WARN"), { desc = "Next Warning" }) vim.keymap.set("n", "]w", diagnostic_goto(true, "WARN"), { desc = "Next Warning" })
vim.keymap.set("n", "[w", diagnostic_goto(false, "WARN"), { desc = "Prev Warning" }) vim.keymap.set("n", "[w", diagnostic_goto(false, "WARN"), { desc = "Prev Warning" })
-- Close Tab
vim.keymap.set("n", "<leader>xt", "<cmd>tabclose<cr>", { desc = "Close current tab" })

View File

@@ -156,6 +156,7 @@ return {
{ find = "<ed" }, { find = "<ed" },
{ find = "The only match" }, { find = "The only match" },
{ find = "DB:" }, { find = "DB:" },
{ find = "cwd:" },
}, },
}, },
}, },

View File

@@ -2,7 +2,7 @@ return {
-- Navigate between NVIM & Tmux splits seamlessly -- Navigate between NVIM & Tmux splits seamlessly
{ "christoomey/vim-tmux-navigator" }, { "christoomey/vim-tmux-navigator" },
-- Navigate between NVIM & kitty splits seamlessly -- Navigate between NVIM & kitty splits
{ {
"knubie/vim-kitty-navigator", "knubie/vim-kitty-navigator",
build = "cp ./*.py ~/.config/kitty/", build = "cp ./*.py ~/.config/kitty/",

View File

@@ -127,3 +127,6 @@ nnoremap <leader>u :UndotreeToggle<CR>
" Fugitive " Fugitive
nnoremap <leader>gg :0G<cr> nnoremap <leader>gg :0G<cr>
" Close Tab
nnoremap <leader>xt :tabclose