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