nixbook: gruvbox theme and fix nixvim cmp

This commit is contained in:
Tristan 2024-10-02 00:37:09 +01:00
parent ea68950497
commit 29bd3b69f8
3 changed files with 38 additions and 14 deletions

View file

@ -44,15 +44,6 @@
gtk = {
enable = true;
iconTheme = {
name = "Vimix-Doder";
package = pkgs.vimix-icon-theme;
};
cursorTheme = {
name = "Vanilla-DMZ";
package = pkgs.vanilla-dmz;
size = 24;
};
gtk3.bookmarks = [
"file:///home/tristan/Documents"
"file:///home/tristan/Pictures/Screenshots"

View file

@ -59,11 +59,11 @@
'';
}
{
key = "<C-n>";
key = "<C-Tab>";
action = "<CMD>tabnext<CR>";
}
{
key = "<C-p>";
key = "<C-S-Tab>";
action = "<CMD>tabprev<CR>";
}
{
@ -201,11 +201,29 @@
cmp = {
enable = true;
autoEnableSources = true;
settings = {
mapping = {
"<C-Space>" = "cmp.mapping.complete()";
"<C-u>" = "cmp.mapping.scroll_docs(4)";
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-e>" = "cmp.mapping.close()";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<C-p>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
"<C-n>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
};
sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
];
};
};
cmp-nvim-lsp.enable = true;
cmp-nvim-lsp-signature-help.enable = true;
cmp-path.enable = true;
cmp-buffer.enable = true;
trouble.enable = true;
gitsigns.enable = true;
git-worktree = {
@ -246,6 +264,7 @@
oil.enable = true;
autoclose.enable = true;
ts-autotag.enable = true;
guess-indent.enable = true;
};

View file

@ -52,13 +52,27 @@
stylix = {
enable = true;
image = ../images/nix-soft.png;
base16Scheme = "${pkgs.base16-schemes}/share/themes/onedark.yaml";
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
opacity = {
terminal = 0.9;
applications = 0.9;
desktop = 0.9;
popups = 0.9;
};
cursor = {
name = "Vanilla-DMZ";
package = pkgs.vanilla-dmz;
size = 24;
};
targets = {
gtk.enable = false; # fails to switch with cosmic overriding it (grr)
grub = {
useImage = true;
};
nixvim = {
transparentBackground.main = true;
};
};
};
nixpkgs.overlays = [