felixalbpc/home/zsh/neovim: Various small QoL improvements and fixes
This commit is contained in:
@@ -98,11 +98,14 @@ in {
|
||||
" Nerdtree-settings
|
||||
" Toggle nerdtree on Ctrl+t
|
||||
nmap <silent> <C-t> :NERDTreeToggle<CR>
|
||||
autocmd VimEnter * NERDTree " Autostart nerdtree on vim startup
|
||||
autocmd VimEnter * wincmd p " Unselect nerdtree window
|
||||
" Close vim is Nerdtree is the only buffer left
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
|
||||
if empty($AERC_ACCOUNT)
|
||||
autocmd VimEnter * NERDTree " Autostart nerdtree on vim startup
|
||||
autocmd VimEnter * wincmd p " Unselect nerdtree window
|
||||
endif
|
||||
|
||||
" List and switch buffers on Ctrl+k
|
||||
" nnoremap <C-k> :set nomore <Bar> :ls <Bar> :set more <CR>:b<Space>
|
||||
nnoremap <silent> <C-k> !echo "Did you mean C-a?"<CR>
|
||||
@@ -124,9 +127,7 @@ in {
|
||||
map <Leader><Space> :noh<CR>
|
||||
|
||||
" Start with copilot disabled
|
||||
if exists("*Copilot")
|
||||
autocmd VimEnter * Copilot disable
|
||||
endif
|
||||
let g:copilot_enabled = 0
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
25
home/zsh.nix
25
home/zsh.nix
@@ -39,23 +39,30 @@
|
||||
zstyle ':completion:*' special-dirs true
|
||||
export PATH="$HOME/.config/emacs/bin:$PATH"
|
||||
unalias "gs"
|
||||
|
||||
if [ -f ~/.config/zsh-extras ]; then
|
||||
source ~/.config/zsh-extras
|
||||
fi
|
||||
'';
|
||||
|
||||
shellAliases = {
|
||||
l = "exa -l";
|
||||
c = "z";
|
||||
tree = "exa --tree --icons";
|
||||
em = "emacsclient -c";
|
||||
emnw = "emacsclient -nw";
|
||||
grep = "grep --color=auto";
|
||||
l = "exa -l";
|
||||
ls = "ls --color=auto";
|
||||
nd = "nix develop --command zsh";
|
||||
s = "nix-shell --run zsh";
|
||||
sp = "nix-shell --run zsh -p";
|
||||
spu = "nix-shell -I nixpkgs=channel:nixos-unstable --run zsh -p";
|
||||
nd = "nix develop --command zsh";
|
||||
em = "emacsclient -c";
|
||||
emnw = "emacsclient -nw";
|
||||
gst = "git status -sb";
|
||||
gcm = "git commit -m";
|
||||
gps = "git push";
|
||||
gpl = "git pull";
|
||||
tree = "exa --tree --icons";
|
||||
|
||||
"git clone git clone" = "git clone";
|
||||
gcm = "git commit -m";
|
||||
gpl = "git pull";
|
||||
gps = "git push";
|
||||
gst = "git status -sb";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user