Update nvf, add lazygit
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
20
hosts/common/configs/user/console/lazygit/default.nix
Normal file
20
hosts/common/configs/user/console/lazygit/default.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{ user, home }:
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
environment.persistence."/persist/state"."${home}/.local/state/lazygit" = { };
|
||||||
|
|
||||||
|
home-manager.users.${user}.programs.lazygit = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
gui = {
|
||||||
|
showBottomLine = false;
|
||||||
|
nerdFontsVersion = "3";
|
||||||
|
animateExplosion = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
disableStartupPopups = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@@ -36,7 +36,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
binds = {
|
binds = {
|
||||||
# hardtime-nvim.enable = true;
|
|
||||||
whichKey.enable = true;
|
whichKey.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -50,9 +49,9 @@
|
|||||||
comment-nvim.enable = true;
|
comment-nvim.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# dashboard = {
|
dashboard = {
|
||||||
# alpha.enable = true;
|
alpha.enable = true;
|
||||||
# };
|
};
|
||||||
|
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -62,15 +61,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# formatter = {
|
|
||||||
# conform-nvim.enable = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# git-conflict.enable = true;
|
git-conflict.enable = true;
|
||||||
gitsigns.enable = true;
|
gitsigns.enable = true;
|
||||||
# neogit.enable = true;
|
vim-fugitive.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
languages = {
|
languages = {
|
||||||
@@ -114,13 +109,11 @@
|
|||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
formatOnSave = true;
|
formatOnSave = true;
|
||||||
# nvim-docs-view.enable = true;
|
otter-nvim = {
|
||||||
# otter-nvim.enable = true;
|
enable = true;
|
||||||
|
setupOpts.handle_leading_whitespace = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# minimap = {
|
|
||||||
# codewindow.enable = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
notify = {
|
notify = {
|
||||||
nvim-notify.enable = true;
|
nvim-notify.enable = true;
|
||||||
@@ -133,16 +126,8 @@
|
|||||||
smartindent = true;
|
smartindent = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# projects = {
|
|
||||||
# project-nvim.enable = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
searchCase = "smart";
|
searchCase = "smart";
|
||||||
|
|
||||||
# snippets = {
|
|
||||||
# luasnip.enable = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
tabline = {
|
tabline = {
|
||||||
nvimBufferline = {
|
nvimBufferline = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -174,6 +159,7 @@
|
|||||||
terminal = {
|
terminal = {
|
||||||
toggleterm = {
|
toggleterm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
lazygit.enable = true;
|
||||||
setupOpts.winbar.enabled = false;
|
setupOpts.winbar.enabled = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -186,31 +172,25 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ui = {
|
ui = {
|
||||||
# breadcrumbs = {
|
|
||||||
# enable = true;
|
|
||||||
# navbuddy.enable = true;
|
|
||||||
# };
|
|
||||||
colorizer.enable = true;
|
colorizer.enable = true;
|
||||||
# fastaction.enable = true;
|
illuminate.enable = true;
|
||||||
# illuminate.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
undoFile.enable = true;
|
undoFile.enable = true;
|
||||||
|
|
||||||
utility = {
|
utility = {
|
||||||
# diffview-nvim.enable = true;
|
images = {
|
||||||
# icon-picker.enable = true;
|
img-clip = {
|
||||||
# images = {
|
enable = true;
|
||||||
# img-clip.enable = true;
|
setupOpts.verbose = false;
|
||||||
# };
|
};
|
||||||
# mkdir.enable = true;
|
};
|
||||||
|
mkdir.enable = true;
|
||||||
motion = {
|
motion = {
|
||||||
precognition.enable = true;
|
precognition.enable = true;
|
||||||
};
|
};
|
||||||
# nvim-biscuits.enable = true;
|
|
||||||
# smart-splits.enable = true;
|
|
||||||
surround.enable = true;
|
surround.enable = true;
|
||||||
# undotree.enable = true;
|
undotree.enable = true;
|
||||||
yazi-nvim = {
|
yazi-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
setupOpts.open_for_directories = true;
|
setupOpts.open_for_directories = true;
|
||||||
@@ -218,9 +198,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
visuals = {
|
visuals = {
|
||||||
# cinnamon-nvim.enable = true;
|
highlight-undo = {
|
||||||
# fidget-nvim.enable = true;
|
enable = true;
|
||||||
# highlight-undo.enable = true;
|
setupOpts.duration = 250;
|
||||||
|
};
|
||||||
indent-blankline.enable = true;
|
indent-blankline.enable = true;
|
||||||
nvim-cursorline.enable = true;
|
nvim-cursorline.enable = true;
|
||||||
nvim-scrollbar.enable = true;
|
nvim-scrollbar.enable = true;
|
||||||
@@ -274,6 +255,13 @@
|
|||||||
silent = true;
|
silent = true;
|
||||||
desc = "Save & Quit";
|
desc = "Save & Quit";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
mode = [ "n" ];
|
||||||
|
key = "<leader>be";
|
||||||
|
action = "<cmd>enew<CR>";
|
||||||
|
silent = true;
|
||||||
|
desc = "New buffer";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@@ -27,6 +27,7 @@ in
|
|||||||
(import ../../../common/configs/user/console/ip { inherit user home; })
|
(import ../../../common/configs/user/console/ip { inherit user home; })
|
||||||
(import ../../../common/configs/user/console/jq { inherit user home; })
|
(import ../../../common/configs/user/console/jq { inherit user home; })
|
||||||
(import ../../../common/configs/user/console/kubernetes { inherit user home; })
|
(import ../../../common/configs/user/console/kubernetes { inherit user home; })
|
||||||
|
(import ../../../common/configs/user/console/lazygit { inherit user home; })
|
||||||
(import ../../../common/configs/user/console/lsof { inherit user home; })
|
(import ../../../common/configs/user/console/lsof { inherit user home; })
|
||||||
(import ../../../common/configs/user/console/mprocs { inherit user home; })
|
(import ../../../common/configs/user/console/mprocs { inherit user home; })
|
||||||
(import ../../../common/configs/user/console/ncdu { inherit user home; })
|
(import ../../../common/configs/user/console/ncdu { inherit user home; })
|
||||||
|
@@ -28,6 +28,7 @@ in
|
|||||||
(import ../../../common/configs/user/console/imagemagick { inherit user home; })
|
(import ../../../common/configs/user/console/imagemagick { inherit user home; })
|
||||||
(import ../../../common/configs/user/console/ip { inherit user home; })
|
(import ../../../common/configs/user/console/ip { inherit user home; })
|
||||||
(import ../../../common/configs/user/console/jq { inherit user home; })
|
(import ../../../common/configs/user/console/jq { inherit user home; })
|
||||||
|
(import ../../../common/configs/user/console/lazygit { inherit user home; })
|
||||||
(import ../../../common/configs/user/console/libvirt { inherit user home; })
|
(import ../../../common/configs/user/console/libvirt { inherit user home; })
|
||||||
(import ../../../common/configs/user/console/lsof { inherit user home; })
|
(import ../../../common/configs/user/console/lsof { inherit user home; })
|
||||||
(import ../../../common/configs/user/console/mprocs { inherit user home; })
|
(import ../../../common/configs/user/console/mprocs { inherit user home; })
|
||||||
|
Reference in New Issue
Block a user