mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-10-02 11:41:50 +00:00
feat: gitsigns
This commit is contained in:
@@ -151,6 +151,7 @@
|
|||||||
"audio"
|
"audio"
|
||||||
"video"
|
"video"
|
||||||
"plugdev"
|
"plugdev"
|
||||||
|
"dialout"
|
||||||
"cdrom"
|
"cdrom"
|
||||||
"kvm"
|
"kvm"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -14,13 +14,13 @@ in
|
|||||||
"buffers"
|
"buffers"
|
||||||
"curdir"
|
"curdir"
|
||||||
"folds"
|
"folds"
|
||||||
"globals"
|
|
||||||
"help"
|
"help"
|
||||||
"tabpages"
|
"tabpages"
|
||||||
"winsize"
|
"winsize"
|
||||||
"winpos"
|
"winpos"
|
||||||
"terminal"
|
"terminal"
|
||||||
"localoptions"
|
"localoptions"
|
||||||
|
"globals"
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -35,6 +35,10 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
lz-n.enable = true;
|
lz-n.enable = true;
|
||||||
|
neo-tree.lazyLoad = {
|
||||||
|
enable = true;
|
||||||
|
settings.cmd = "Neotree";
|
||||||
|
};
|
||||||
fidget.lazyLoad = {
|
fidget.lazyLoad = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -31,12 +31,6 @@ in
|
|||||||
settings = {
|
settings = {
|
||||||
options = {
|
options = {
|
||||||
globalstatus = true;
|
globalstatus = true;
|
||||||
/*
|
|
||||||
section_separators = {
|
|
||||||
left = "";
|
|
||||||
right = "";
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
component_separators = {
|
component_separators = {
|
||||||
left = "┊";
|
left = "┊";
|
||||||
right = "┊";
|
right = "┊";
|
||||||
@@ -46,25 +40,14 @@ in
|
|||||||
lualine_a = [
|
lualine_a = [
|
||||||
{
|
{
|
||||||
__unkeyed-1 = "mode";
|
__unkeyed-1 = "mode";
|
||||||
/*
|
|
||||||
separator = {
|
|
||||||
right = "";
|
|
||||||
left = "";
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
icon = "";
|
icon = "";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
lualine_c = [ ];
|
||||||
lualine_x = lib.mkAfter [ { __unkeyed-1 = "filetype"; } ];
|
lualine_x = lib.mkAfter [ { __unkeyed-1 = "filetype"; } ];
|
||||||
lualine_z = [
|
lualine_z = [
|
||||||
{
|
{
|
||||||
__unkeyed-1 = "location";
|
__unkeyed-1 = "location";
|
||||||
/*
|
|
||||||
separator = {
|
|
||||||
right = "";
|
|
||||||
left = "";
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -94,23 +94,42 @@ in
|
|||||||
letters = "etarfkcdmhsunobwgiyzqxvplj.,-ETARFKCDMHSUNOBWGIYZQXVPLJ";
|
letters = "etarfkcdmhsunobwgiyzqxvplj.,-ETARFKCDMHSUNOBWGIYZQXVPLJ";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
/*
|
auto-session.settings = {
|
||||||
scope = {
|
pre_save_cmds = [
|
||||||
enable = true;
|
{
|
||||||
settings.hooks = {
|
__raw = ''
|
||||||
pre_tab_leave.__raw = ''
|
|
||||||
function()
|
function()
|
||||||
vim.api.nvim_exec_autocmds('User', {pattern = 'ScopeTabLeavePre'})
|
-- require("scope.session").save_state()
|
||||||
|
vim.api.nvim_exec_autocmds('User', {pattern = 'SessionSavePre'})
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
post_tab_enter.__raw = ''
|
}
|
||||||
|
];
|
||||||
|
post_restore_cmds = [
|
||||||
|
{
|
||||||
|
__raw = ''
|
||||||
function()
|
function()
|
||||||
vim.api.nvim_exec_autocmds('User', {pattern = 'ScopeTabEnterPost'})
|
-- require("scope.session").load_state()
|
||||||
end
|
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;
|
status-line.enable = true;
|
||||||
syntax.enable = true;
|
syntax.enable = true;
|
||||||
tabs.enable = true;
|
tabs.enable = true;
|
||||||
yazi.enable = true;
|
tree.enable = true;
|
||||||
};
|
};
|
||||||
languages = {
|
languages = {
|
||||||
c.enable = true;
|
c.enable = true;
|
||||||
@@ -113,10 +113,38 @@
|
|||||||
which-key.enable = true;
|
which-key.enable = true;
|
||||||
schemastore.enable = true;
|
schemastore.enable = true;
|
||||||
todo-comments.enable = true;
|
todo-comments.enable = true;
|
||||||
origami.enable = false;
|
|
||||||
nvim-surround.enable = true;
|
nvim-surround.enable = true;
|
||||||
fidget.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 = {
|
treesitter-context = {
|
||||||
enable = false; # TODO: looks weird with Neovide
|
enable = false; # TODO: looks weird with Neovide
|
||||||
settings.line_numbers = false;
|
settings.line_numbers = false;
|
||||||
|
|||||||
@@ -311,10 +311,12 @@ in
|
|||||||
theme = {
|
theme = {
|
||||||
name = "Adwaita";
|
name = "Adwaita";
|
||||||
};
|
};
|
||||||
iconTheme = {
|
/*
|
||||||
name = "Tela";
|
iconTheme = {
|
||||||
package = pkgs.tela-icon-theme;
|
name = "Adwaita";
|
||||||
};
|
package = pkgs.adwaita-icon-theme;
|
||||||
|
};
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
qt.platformTheme.name = "qtct";
|
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! SpellLocal gui=undercurl guisp={{colors.success.default.hex}}
|
||||||
|
|
||||||
hi! DiffAdd guibg={{colors.green_container.default.hex}} guifg={{colors.on_green_container.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! 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! NeoTreeGitAdded guifg={{colors.green.default.hex}}
|
||||||
hi! NeoTreeGitDeleted guifg={{colors.red.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! 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! NonText guifg={{colors.outline_variant.default.hex}}
|
||||||
hi! CursorLineNr guifg={{colors.on_surface.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 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 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 = {
|
let g:lualine_theme = {
|
||||||
\ "insert": {
|
\ "insert": {
|
||||||
|
|||||||
@@ -16,7 +16,10 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [ glib ];
|
environment.systemPackages = with pkgs; [
|
||||||
|
glib
|
||||||
|
adwaita-icon-theme
|
||||||
|
];
|
||||||
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user