pager and git diff and merge setup
This commit is contained in:
parent
f6d588f4e0
commit
d6589d437b
41
common.nix
41
common.nix
@ -339,9 +339,8 @@ in
|
||||
config = {
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
PAGER = "nvim -R";
|
||||
MANPAGER = "nvim -R +Man!";
|
||||
PAGER = "less -RFX --tabs=4";
|
||||
MANPAGER = "nvim +'setl filetype=terminal' +'Man!'";
|
||||
};
|
||||
|
||||
xdg.mimeApps = {
|
||||
@ -517,13 +516,14 @@ in
|
||||
p = "push";
|
||||
cl = "clone";
|
||||
};
|
||||
delta = {
|
||||
diff-so-fancy = {
|
||||
enable = true;
|
||||
};
|
||||
extraConfig = {
|
||||
push = {
|
||||
autoSetupRemote = true;
|
||||
};
|
||||
merge.tool = "nvimdiff2";
|
||||
commit = {
|
||||
gpgsign = true;
|
||||
};
|
||||
@ -566,28 +566,33 @@ in
|
||||
defaultEditor = true;
|
||||
vimAlias = true;
|
||||
viAlias = true;
|
||||
vimdiffAlias = true;
|
||||
extraConfig = ''
|
||||
" General
|
||||
set number
|
||||
set relativenumber
|
||||
set cc=120
|
||||
set tabstop=4
|
||||
set softtabstop=0 noexpandtab
|
||||
set shiftwidth=4
|
||||
colorscheme catppuccin-mocha
|
||||
" General
|
||||
set number
|
||||
set relativenumber
|
||||
set cc=120
|
||||
set tabstop=4
|
||||
set softtabstop=0 noexpandtab
|
||||
set shiftwidth=4
|
||||
colorscheme catppuccin-mocha
|
||||
hi Normal guibg=NONE ctermbg=NONE
|
||||
|
||||
" VimTex
|
||||
filetype plugin indent on
|
||||
syntax enable
|
||||
let g:vimtex_view_method = 'zathura'
|
||||
" VimTex
|
||||
filetype plugin indent on
|
||||
syntax enable
|
||||
let g:vimtex_view_method = 'zathura'
|
||||
|
||||
" Vim-LaTeX-live-preview
|
||||
let g:livepreview_previewer = 'zathura'
|
||||
" Vim-LaTeX-live-preview
|
||||
let g:livepreview_previewer = 'zathura'
|
||||
|
||||
lua require'terminal'.setup()
|
||||
'';
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
vimtex
|
||||
vim-latex-live-preview
|
||||
catppuccin-nvim
|
||||
nvim-terminal-lua
|
||||
];
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user