mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
NeoVim & VIM
- Testing setup through neotest plugin - Spellcheck enabled on markdown and text files - Diagnosis summary through trouble plugin - Code completion keybindings improved - Auto-formatting through conform plugin - Reactjs context aware commenting through nvim-ts-context-commentstring - Auto HTML tag completion through nvim-ts-autotag - CSS color highlight through nvim-highlight-colors - Lualine: breadcrumbs, git status, single line - Auto restore neovim sessions - Better keyboard maps Shell - Aliases now load from .bashrc or .zshrc - Bash & zsh shortcuts to easy open and create projects - zoxide instead of cd when installed - bootstrap.sh shellhardened
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
# TODO:
|
||||
# - Display current directory on OS title: even when nvim or any other forground app is running
|
||||
# - Vim keymaps <ctrl>+hjkl to move around splits: https://github.com/knubie/vim-kitty-navigator
|
||||
# - OR <ctrl+shift>+ <arrow_keys>??? in sync with konsole???
|
||||
# - <Ctrl+shift> [/] to decrease/increase split size
|
||||
|
||||
#: Fonts {{{
|
||||
@@ -434,11 +432,11 @@ scrollback_pager nvim -c 'set ft=man'
|
||||
|
||||
# Enable kitty scrollback.nvim plugin
|
||||
allow_remote_control yes
|
||||
listen_on unix:/tmp/kitty
|
||||
listen_on unix:@mykitty
|
||||
shell_integration enabled no-sudo no-complete
|
||||
action_alias kitty_scrollback_nvim kitten /home/pratik/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py --nvim-args --clean --noplugin -n
|
||||
map kitty_mod+h kitty_scrollback_nvim
|
||||
map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
||||
map kitty_mod+g kitty_scrollback_nvim
|
||||
map kitty_mod+alt+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
||||
mouse_map kitty_mod+right press ungrabbed combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
||||
|
||||
map kitty_mod+f7 show_kitty_env_vars
|
||||
@@ -1029,14 +1027,32 @@ enable_audio_bell no
|
||||
# Hide title bar
|
||||
hide_window_decorations yes
|
||||
window_border_width 0.2pt
|
||||
# New windows open in the same directory as the current window
|
||||
map ctrl+shift+enter new_window_with_cwd
|
||||
|
||||
# New splits open in the same directory as the current window
|
||||
map shift+F1 new_window_with_cwd
|
||||
map kitty_mod+enter new_window_with_cwd
|
||||
map shift+F2 toggle_layout stack # Zoom the current window
|
||||
|
||||
enabled_layouts fat:bias=75;full_size=1,stack,tall:bias=50;full_size=2
|
||||
map F11 toggle_layout stack
|
||||
|
||||
# Open nvim on the current directory with ctrl+shift+o
|
||||
map ctrl+shift+o launch --cwd=current --type=tab nvim
|
||||
map kitty_mod+o launch --cwd=current --type=tab nvim
|
||||
|
||||
# Sync split navigation with VIM: https://github.com/knubie/vim-kitty-navigator
|
||||
map ctrl+shift+j kitten pass_keys.py bottom ctrl+shift+j
|
||||
map ctrl+shift+k kitten pass_keys.py top ctrl+shift+k
|
||||
map ctrl+shift+h kitten pass_keys.py left ctrl+shift+h
|
||||
map ctrl+shift+l kitten pass_keys.py right ctrl+shift+l
|
||||
map ctrl+shift+j kitten pass_keys.py bottom ctrl+shift+j "^.* - nvim$"
|
||||
map ctrl+shift+k kitten pass_keys.py top ctrl+shift+k "^.* - nvim$"
|
||||
map ctrl+shift+h kitten pass_keys.py left ctrl+shift+h "^.* - nvim$"
|
||||
map ctrl+shift+l kitten pass_keys.py right ctrl+shift+l "^.* - nvim$"
|
||||
|
||||
# Redundant, they are used for scrollback.nvim as well
|
||||
# But, this would work even if we uninstall scrollback.nvim
|
||||
listen_on unix:@mykitty
|
||||
allow_remote_control yes
|
||||
|
||||
#: Tab bar {{{
|
||||
|
||||
@@ -1896,8 +1912,8 @@ update_check_interval 0
|
||||
#: cause all invocations of the hints kitten to have the --hints-
|
||||
#: offset=0 option applied.
|
||||
|
||||
map ctrl+shift+p nth_window -1
|
||||
map ctrl+shift+n nth_window +1
|
||||
map kitty_mod+p nth_window -1
|
||||
map kitty_mod+n nth_window +1
|
||||
|
||||
#: Clipboard {{{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user