mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-21 19:57:30 +01:00
felixalbpc/home/zsh/neovim: Various small QoL improvements and fixes
This commit is contained in:
parent
69949e872d
commit
56e92e70f1
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -97,5 +97,6 @@
|
||||
};
|
||||
location.provider = "geoclue2";
|
||||
security.polkit.enable = true;
|
||||
services.dbus.packages = [ pkgs.gcr ];
|
||||
services.openssh.settings.X11Forwarding = true;
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
let
|
||||
emailAddress = "felix.albrigtsen@ntnu.no";
|
||||
in {
|
||||
imports = [
|
||||
./../../home/base.nix
|
||||
./../../home/alacritty.nix
|
||||
@ -11,6 +13,7 @@
|
||||
dante
|
||||
dig
|
||||
element-desktop
|
||||
gnome.gnome-keyring
|
||||
hunspellDicts.en_US
|
||||
hunspellDicts.nb_NO
|
||||
jq
|
||||
@ -22,8 +25,9 @@
|
||||
openssl
|
||||
openstackclient
|
||||
pwgen
|
||||
traceroute
|
||||
rofi-rbw-x11
|
||||
tlclient
|
||||
traceroute
|
||||
w3m
|
||||
|
||||
(python311.withPackages (ps: with ps; [
|
||||
@ -35,10 +39,21 @@
|
||||
];
|
||||
|
||||
programs = {
|
||||
aerc.enable = true;
|
||||
aerc = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.aerc;
|
||||
};
|
||||
alacritty.enable = true;
|
||||
firefox.enable = true;
|
||||
git.extraConfig.user.email = "felix.albrigtsen@ntnu.no";
|
||||
git.extraConfig.user.email = emailAddress;
|
||||
rbw = {
|
||||
enable = true;
|
||||
settings = {
|
||||
base_url = "https://bitwarden.it.ntnu.no";
|
||||
email = emailAddress;
|
||||
pinentry = pkgs.pinentry-gnome3;
|
||||
};
|
||||
};
|
||||
rofi = {
|
||||
enable = true;
|
||||
theme = "iggy";
|
||||
|
Loading…
Reference in New Issue
Block a user