change nixvim config

Former-commit-id: 30009bcafb
This commit is contained in:
Hadi
2025-03-22 13:21:33 +01:00
parent 6971afb3af
commit f8b20c8f20
5 changed files with 39 additions and 5 deletions

View File

@@ -7,13 +7,12 @@
icons = { };
# TODO: Learn how to use this
bracketed = { };
tabline = { };
statusline = { };
git = { };
diff = { };
starter = { };
pairs = { };
notify = { lsp_progress.enable = false; };
indentscope = { };
git = { };
cursorword = { };
comment = { };
starter = { };

View File

@@ -1,5 +1,21 @@
{
{ config, ... }: {
programs.nixvim = {
highlightOverride = {
SnacksPicker = {
bg = "none";
nocombine = true;
};
SnacksPickerBorder = {
bg = "none";
fg = "#${config.lib.stylix.colors.base0D}";
};
SnacksPickerTree = { bg = "#${config.lib.stylix.colors.base00}"; };
FloatBorder = {
bg = "#${config.lib.stylix.colors.base00}";
fg = "#${config.lib.stylix.colors.base0D}";
};
NormalFloat = { bg = "#${config.lib.stylix.colors.base00}"; };
};
plugins = {
snacks.settings = {
picker.enable = true;
@@ -133,6 +149,11 @@
action = "<cmd>lua Snacks.picker.lines()<cr>";
options.desc = "Buffer Lines";
}
{
key = "<leader>st";
action = "<cmd>TodoLocList<cr>";
options.desc = "Todos";
}
{
key = "<leader>sB";
action = "<cmd>lua Snacks.picker.grep_buffers()<cr>";

View File

@@ -10,6 +10,7 @@
quickfile.enable = true;
statuscolumn.enable = true;
zen.enable = true;
bufdelete.enable = true;
};
};
@@ -29,6 +30,11 @@
action = "<cmd>lua Snacks.dim.disable()<cr>";
options.desc = "Undim";
}
{
key = "<leader>wc";
action = "<cmd>lua Snacks.bufdelete.all()<cr>";
options.desc = "Close all buffers";
}
];
};
}

View File

@@ -2,13 +2,15 @@
programs.nixvim = {
nixpkgs.config.allowUnfree = true; # For copilot
highlightOverride = {
FloatBorder.fg = "#${config.lib.stylix.colors.base0D}";
WhichKeySeparator.bg = "#${config.lib.stylix.colors.base00}";
};
plugins = {
bufferline.enable = true;
copilot-vim.enable = true;
flash.enable = true;
tmux-navigator.enable = true;
todo-comments.enable = true;
lualine = { enable = true; };
treesitter = {
enable = true;
nixGrammars = true;