Compare commits

..

2 commits

Author SHA1 Message Date
joygnu db5b817a12 neovim 2024-07-08 20:53:46 +02:00
joygnu 5cb5fda6bd neovim 2024-07-08 19:43:04 +02:00
10 changed files with 34 additions and 141 deletions

View file

@ -26,6 +26,7 @@
inputs.stylix.nixosModules.stylix inputs.stylix.nixosModules.stylix
]; ];
}; };
nixosConfigurations.laptop = nixpkgs.lib.nixosSystem { nixosConfigurations.laptop = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
modules = [ modules = [

View file

@ -9,8 +9,6 @@ home.username = "joy";
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
}; };
qt.enable = true;
qt.style.name = "adwaita";
xdg.mimeApps.defaultApplications = { xdg.mimeApps.defaultApplications = {
"text/plain" = ["neovide.desktop"]; "text/plain" = ["neovide.desktop"];

View file

@ -1,44 +1,38 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
./plugins ./plugins
./set.nix ];
];
programs.nixvim = { programs.nixvim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
vimAlias = true;
clipboard.register = "unnamedplus"; clipboard.register = "unnamedplus";
colorschemes.gruvbox.enable = true; colorschemes.gruvbox.enable = true;
plugins = { plugins = {
presence-nvim = {
enable = true;
mainImage = "file";
};
bufferline = {
enable = true;
separatorStyle = "slope";
};
treesitter = { treesitter = {
enable = true; enable = true;
indent = true; indent = true;
nixvimInjections = true; nixvimInjections = true;
}; };
treesitter-context.enable = true; lualine.enable = true;
nvim-tree = { };
enable = true;
renderer.groupEmpty = true; opts = {
}; number = true;
lualine.enable = true; tabstop = 2;
softtabstop = 2;
showtabline = 2;
expandtab = true;
shiftwidth = 2;
smartindent = true;
breakindent = true;
cursorline = true;
scrolloff = 8;
cmdheight = 0;
wrap = true;
termguicolors = true;
# showmode = false;
}; };
keymaps = [
{
mode = "n";
key = "<C-n>";
action = "<cmd>NvimTreeToggle<CR>";
}
];
}; };
} }

View file

@ -1,78 +0,0 @@
{ ... }:
{
programs.nixvim.plugins.alpha = {
enable = true;
layout = [
{
type = "padding";
val = 4;
}
{
opts = {
hl = "AlphaHeader";
position = "center";
};
type = "text";
val = [
" "
" "
" "
" "
" "
" "
" "
" "
" "
" "
" git@github.com:TomJuri "
];
}
{
type = "padding";
val = 2;
}
{
type = "group";
val = let
mkButton = shortcut: cmd: val: hl: {
type = "button";
inherit val;
opts = {
inherit hl shortcut;
keymap = [
"n"
shortcut
cmd
{}
];
position = "center";
cursor = 0;
width = 40;
align_shortcut = "right";
hl_shortcut = "Keyword";
};
};
in [
(
mkButton
"f"
"<CMD>lua require('telescope.builtin').find_files({hidden = true})<CR>"
"🔍 Find File"
"Operator"
)
(
mkButton
"q"
"<CMD>qa<CR>"
"💣 Quit"
"String"
)
];
}
{
type = "padding";
val = 2;
}
];
};
}

View file

@ -1,7 +1,6 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
./alpha.nix
./cmp.nix ./cmp.nix
./lsp.nix ./lsp.nix
./luasnip.nix ./luasnip.nix

View file

@ -1,28 +0,0 @@
{ ... }:
{
programs.nixvim = {
globals.mapleader = " ";
opts = {
number = true;
relativenumber = true;
tabstop = 2;
softtabstop = 2;
showtabline = 2;
expandtab = true;
shiftwidth = 2;
smartindent = true;
breakindent = true;
cursorline = true;
scrolloff = 8;
cmdheight = 0;
wrap = true;
termguicolors = true;
colorcolumn = "150";
showmode = false;
};
};
}

View file

@ -1,6 +1,6 @@
{ {
imports = [ imports = [
./fonts # ./fonts
./sound ./sound
./vm ./vm
./packages ./packages

View file

@ -3,6 +3,6 @@
{ {
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
font-awesome font-awesome
(nerdfonts.override { fonts = [ "FiraCode" "JetBrainsMono" "Iosevka" ]; }) (nerdfonts.override { fonts = [ "FiraCode" ]; })
]; ];
} }

View file

@ -56,5 +56,6 @@
yt-dlp yt-dlp
distrobox distrobox
vim vim
font-awesome
]; ];
} }

View file

@ -22,11 +22,17 @@
base0F = "d65d0e"; base0F = "d65d0e";
}; };
image = ./wallpaper.png; image = ./wallpaper.png;
fonts.sizes.terminal = 14;
targets.chromium.enable = false; targets.chromium.enable = false;
cursor.name = "Bibata-Modern-Ice"; cursor.name = "Bibata-Modern-Ice";
cursor.package = pkgs.bibata-cursors; cursor.package = pkgs.bibata-cursors;
cursor.size = 24; cursor.size = 24;
fonts.sizes.desktop = 12; fonts = {
sizes = {
applications = 12;
terminal = 14;
desktop = 12;
popups = 12;
};
};
}; };
} }