mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-09-08 07:54:40 +00:00
feat: gitsigns
This commit is contained in:
@@ -151,6 +151,7 @@
|
||||
"audio"
|
||||
"video"
|
||||
"plugdev"
|
||||
"dialout"
|
||||
"cdrom"
|
||||
"kvm"
|
||||
];
|
||||
|
||||
@@ -14,13 +14,13 @@ in
|
||||
"buffers"
|
||||
"curdir"
|
||||
"folds"
|
||||
"globals"
|
||||
"help"
|
||||
"tabpages"
|
||||
"winsize"
|
||||
"winpos"
|
||||
"terminal"
|
||||
"localoptions"
|
||||
"globals"
|
||||
]
|
||||
);
|
||||
|
||||
@@ -35,6 +35,10 @@ in
|
||||
};
|
||||
};
|
||||
lz-n.enable = true;
|
||||
neo-tree.lazyLoad = {
|
||||
enable = true;
|
||||
settings.cmd = "Neotree";
|
||||
};
|
||||
fidget.lazyLoad = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
@@ -31,12 +31,6 @@ in
|
||||
settings = {
|
||||
options = {
|
||||
globalstatus = true;
|
||||
/*
|
||||
section_separators = {
|
||||
left = "";
|
||||
right = "";
|
||||
};
|
||||
*/
|
||||
component_separators = {
|
||||
left = "┊";
|
||||
right = "┊";
|
||||
@@ -46,25 +40,14 @@ in
|
||||
lualine_a = [
|
||||
{
|
||||
__unkeyed-1 = "mode";
|
||||
/*
|
||||
separator = {
|
||||
right = "";
|
||||
left = "";
|
||||
};
|
||||
*/
|
||||
icon = "";
|
||||
}
|
||||
];
|
||||
lualine_c = [ ];
|
||||
lualine_x = lib.mkAfter [ { __unkeyed-1 = "filetype"; } ];
|
||||
lualine_z = [
|
||||
{
|
||||
__unkeyed-1 = "location";
|
||||
/*
|
||||
separator = {
|
||||
right = "";
|
||||
left = "";
|
||||
};
|
||||
*/
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@@ -94,23 +94,42 @@ in
|
||||
letters = "etarfkcdmhsunobwgiyzqxvplj.,-ETARFKCDMHSUNOBWGIYZQXVPLJ";
|
||||
};
|
||||
};
|
||||
/*
|
||||
scope = {
|
||||
enable = true;
|
||||
settings.hooks = {
|
||||
pre_tab_leave.__raw = ''
|
||||
auto-session.settings = {
|
||||
pre_save_cmds = [
|
||||
{
|
||||
__raw = ''
|
||||
function()
|
||||
vim.api.nvim_exec_autocmds('User', {pattern = 'ScopeTabLeavePre'})
|
||||
-- require("scope.session").save_state()
|
||||
vim.api.nvim_exec_autocmds('User', {pattern = 'SessionSavePre'})
|
||||
end
|
||||
'';
|
||||
post_tab_enter.__raw = ''
|
||||
}
|
||||
];
|
||||
post_restore_cmds = [
|
||||
{
|
||||
__raw = ''
|
||||
function()
|
||||
vim.api.nvim_exec_autocmds('User', {pattern = 'ScopeTabEnterPost'})
|
||||
-- require("scope.session").load_state()
|
||||
end
|
||||
'';
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
scope = {
|
||||
enable = false;
|
||||
settings.hooks = {
|
||||
pre_tab_leave.__raw = ''
|
||||
function()
|
||||
vim.api.nvim_exec_autocmds('User', {pattern = 'ScopeTabLeavePre'})
|
||||
end
|
||||
'';
|
||||
post_tab_enter.__raw = ''
|
||||
function()
|
||||
vim.api.nvim_exec_autocmds('User', {pattern = 'ScopeTabEnterPost'})
|
||||
end
|
||||
'';
|
||||
};
|
||||
*/
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
status-line.enable = true;
|
||||
syntax.enable = true;
|
||||
tabs.enable = true;
|
||||
yazi.enable = true;
|
||||
tree.enable = true;
|
||||
};
|
||||
languages = {
|
||||
c.enable = true;
|
||||
@@ -113,10 +113,38 @@
|
||||
which-key.enable = true;
|
||||
schemastore.enable = true;
|
||||
todo-comments.enable = true;
|
||||
origami.enable = false;
|
||||
nvim-surround.enable = true;
|
||||
fidget.enable = true;
|
||||
gitsigns.enable = true;
|
||||
gitsigns = {
|
||||
enable = true;
|
||||
settings = {
|
||||
current_line_blame = true;
|
||||
signcolumn = true;
|
||||
numhl = true;
|
||||
diff_opts = {
|
||||
ignore_blank_lines = true;
|
||||
ignore_whitespace_change = true;
|
||||
ignore_whitespace_change_at_eol = true;
|
||||
};
|
||||
|
||||
signs_staged = {
|
||||
add.text = "██";
|
||||
change.text = "🮙🮙";
|
||||
delete.text = "▂▂";
|
||||
topdelete.text = "🮂🮂";
|
||||
changedelete.text = "╲╲";
|
||||
untracked.text = "╳╳";
|
||||
};
|
||||
signs = {
|
||||
add.text = " █";
|
||||
change.text = " 🮙";
|
||||
delete.text = " ▂";
|
||||
topdelete.text = " 🮂";
|
||||
changedelete.text = " ╲";
|
||||
untracked.text = " ╳";
|
||||
};
|
||||
};
|
||||
};
|
||||
treesitter-context = {
|
||||
enable = false; # TODO: looks weird with Neovide
|
||||
settings.line_numbers = false;
|
||||
|
||||
@@ -311,10 +311,12 @@ in
|
||||
theme = {
|
||||
name = "Adwaita";
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Tela";
|
||||
package = pkgs.tela-icon-theme;
|
||||
};
|
||||
/*
|
||||
iconTheme = {
|
||||
name = "Adwaita";
|
||||
package = pkgs.adwaita-icon-theme;
|
||||
};
|
||||
*/
|
||||
};
|
||||
qt.platformTheme.name = "qtct";
|
||||
|
||||
|
||||
@@ -115,15 +115,49 @@ hi! SpellRare gui=undercurl guisp={{colors.success.default.hex}}
|
||||
hi! SpellLocal gui=undercurl guisp={{colors.success.default.hex}}
|
||||
|
||||
hi! DiffAdd guibg={{colors.green_container.default.hex}} guifg={{colors.on_green_container.default.hex}}
|
||||
hi! DiffChange guibg={{colors.yellow_container.default.hex}} guifg={{colors.on_yellow_container.default.hex}}
|
||||
hi! DiffChange guibg={{colors.blue_container.default.hex}} guifg={{colors.on_blue_container.default.hex}}
|
||||
hi! DiffDelete guibg={{colors.red_container.default.hex}} guifg={{colors.on_red_container.default.hex}}
|
||||
hi! DiffText guibg={{colors.blue_container.default.hex}} guifg={{colors.on_blue_container.default.hex}}
|
||||
hi! DiffText guibg={{colors.yellow_container.default.hex}} guifg={{colors.on_yellow_container.default.hex}}
|
||||
|
||||
hi Added guifg={{colors.green.default.hex}}
|
||||
hi Changed guifg={{colors.blue.default.hex}}
|
||||
hi Removed guifg={{colors.red.default.hex}}
|
||||
|
||||
hi GitSignsAdd guibg={{colors.green_container.default.hex}} guifg={{colors.green.default.hex}}
|
||||
hi GitSignsChange guibg={{colors.blue_container.default.hex}} guifg={{colors.blue.default.hex}}
|
||||
hi GitSignsDelete guibg={{colors.red_container.default.hex}} guifg={{colors.red.default.hex}}
|
||||
hi GitSignsTopdelete guifg={{colors.red_container.default.hex}} guifg={{colors.red.default.hex}}
|
||||
hi GitSignsChangedelete guibg={{colors.yellow_container.default.hex}} guifg={{colors.yellow.default.hex}}
|
||||
hi GitSignsUntracked guibg={{colors.surface.default.hex}} guifg={{colors.on_surface.default.hex}}
|
||||
|
||||
hi GitSignsStagedAdd guibg={{colors.green_container.default.hex}} guifg={{colors.green.default.hex}}
|
||||
hi GitSignsStagedChange guibg={{colors.blue_container.default.hex}} guifg={{colors.blue.default.hex}}
|
||||
hi GitSignsStagedDelete guibg={{colors.red_container.default.hex}} guifg={{colors.red.default.hex}}
|
||||
hi GitSignsStagedTopdelete guifg={{colors.red_container.default.hex}} guifg={{colors.red.default.hex}}
|
||||
hi GitSignsStagedChangedelete guibg={{colors.yellow_container.default.hex}} guifg={{colors.yellow.default.hex}}
|
||||
hi GitSignsStagedUntracked guibg={{colors.surface.default.hex}} guifg={{colors.on_surface.default.hex}}
|
||||
|
||||
hi GitSignsAddNr guibg={{colors.green_container.default.hex}} guifg={{colors.on_green_container.default.hex}}
|
||||
hi GitSignsChangeNr guibg={{colors.blue_container.default.hex}} guifg={{colors.on_blue_container.default.hex}}
|
||||
hi GitSignsDeleteNr guibg={{colors.red_container.default.hex}} guifg={{colors.on_red_container.default.hex}}
|
||||
hi GitSignsTopdeleteNr guibg={{colors.red_container.default.hex}} guifg={{colors.on_red_container.default.hex}}
|
||||
hi GitSignsChangedeleteNr guibg={{colors.yellow_container.default.hex}} guifg={{colors.on_yellow_container.default.hex}}
|
||||
hi GitSignsUntrackedNr guibg={{colors.surface.default.hex}} guifg={{colors.on_surface.default.hex}}
|
||||
|
||||
hi GitSignsStagedAddNr guibg={{colors.green_container.default.hex}} guifg={{colors.on_green_container.default.hex}}
|
||||
hi GitSignsStagedChangeNr guibg={{colors.blue_container.default.hex}} guifg={{colors.on_blue_container.default.hex}}
|
||||
hi GitSignsStagedDeleteNr guibg={{colors.red_container.default.hex}} guifg={{colors.on_red_container.default.hex}}
|
||||
hi GitSignsStagedTopdeleteNr guibg={{colors.red_container.default.hex}} guifg={{colors.on_red_container.default.hex}}
|
||||
hi GitSignsStagedChangedeleteNr guibg={{colors.yellow_container.default.hex}} guifg={{colors.on_yellow_container.default.hex}}
|
||||
hi GitSignsStagedUntrackedNr guibg={{colors.surface.default.hex}} guifg={{colors.on_surface.default.hex}}
|
||||
|
||||
hi GitSignsCurrentLineBlame guifg={{colors.outline.default.hex}}
|
||||
|
||||
hi! NeoTreeGitAdded guifg={{colors.green.default.hex}}
|
||||
hi! NeoTreeGitDeleted guifg={{colors.red.default.hex}}
|
||||
hi! NeoTreeGitModified guifg={{colors.yellow.default.hex}}
|
||||
hi! NeoTreeGitModified guifg={{colors.blue.default.hex}}
|
||||
hi! NeoTreeGitConflict guifg={{colors.danger.default.hex}}
|
||||
hi! NeoTreeGitUntracked guifg={{colors.blue.default.hex}}
|
||||
hi! NeoTreeGitUntracked guifg={{colors.yellow.default.hex}}
|
||||
|
||||
hi! NonText guifg={{colors.outline_variant.default.hex}}
|
||||
hi! CursorLineNr guifg={{colors.on_surface.default.hex}}
|
||||
@@ -238,6 +272,9 @@ hi BufferInactiveSign guibg={{colors.surface.default.hex}} guifg={{colors.outlin
|
||||
hi BufferInactiveTarget guibg={{colors.surface.default.hex}} guifg={{colors.primary.default.hex}}
|
||||
|
||||
hi BufferTabpageFill guibg={{colors.surface.default.hex}} guifg={{colors.on_surface.default.hex}}
|
||||
hi BufferScrollArrow guibg={{colors.surface.default.hex}} guifg={{colors.on_surface.default.hex}}
|
||||
hi BufferTabpages guibg={{colors.surface.default.hex}} guifg={{colors.secondary.default.hex}}
|
||||
hi BufferTabpagesSep guibg={{colors.surface.default.hex}} guifg={{colors.on_surface.default.hex}}
|
||||
|
||||
let g:lualine_theme = {
|
||||
\ "insert": {
|
||||
|
||||
@@ -16,7 +16,10 @@ in
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ glib ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
glib
|
||||
adwaita-icon-theme
|
||||
];
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
|
||||
Reference in New Issue
Block a user