chore: update neovim / tmux nix 📌

This commit is contained in:
DannyDannyDanny 2024-10-28 15:25:47 +00:00
parent b895c72205
commit f4f57b8142
2 changed files with 32 additions and 7 deletions

View file

@ -5,12 +5,36 @@
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
configure = { configure = {
# colorscheme blue
# colorscheme desert
customRC = '' customRC = ''
colorscheme peachpuff set title
set bg=light
set go=a
set mouse=a
set nohlsearch
colorscheme gruvbox
set listchars=tab:\ ,space:·,nbsp:,trail:,eol:,precedes:«,extends:» set listchars=tab:\ ,space:·,nbsp:,trail:,eol:,precedes:«,extends:»
set clipboard+=unnamedplus
" Replace-all is aliased to S.
nnoremap S :%s//g<Left><Left>
''; '';
# vimPlugins inspired from Alexnortung
# https://discourse.nixos.org/t/neovim-no-longer-uses-config-or-plugins/13399/4
packages.nix = with pkgs.vimPlugins; {
start = [
vim-surround # Shortcuts for setting () {} etc.
# coc-nvim coc-git coc-highlight coc-python coc-rls coc-vetur coc-vimtex coc-yaml coc-html coc-json # auto completion
vim-nix # nix highlight
vimtex # latex stuff
fzf-vim # fuzzy finder through vim
nerdtree # file structure inside nvim
rainbow # Color parenthesis
gruvbox-nvim # theme
];
opt = [];
};
}; };
}; };
} }

View file

@ -4,19 +4,20 @@
programs.tmux = { programs.tmux = {
enable = true; enable = true;
clock24 = true; clock24 = true;
escapeTime = 20;
extraConfig = '' extraConfig = ''
# remap prefix from ^+A to ^+B (for nested tmux sessions) # remap prefix from ^+B to alt-f
unbind C-b unbind C-b
set -g prefix M-f set -g prefix M-f
bind M-f send-prefix bind M-f send-prefix
# nvim 'checkhealth' advice # nvim 'checkhealth' advice
set-option -g focus-events on set-option -g focus-events on
set-option -g default-terminal "screen-256color"
set-option -sa terminal-overrides ',xterm-256color:RGB' set-option -sa terminal-overrides ',xterm-256color:RGB'
set-option -g default-terminal "screen-256color"
# enable mouse support for switching panes/windows # enable mouse support for switching panes/windows
# set -g mouse on set -g mouse on
# extend history # extend history
set -g history-limit 100000 set -g history-limit 100000