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
];
};
nixosConfigurations.laptop = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [

View file

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

View file

@ -2,43 +2,37 @@
{
imports = [
./plugins
./set.nix
];
programs.nixvim = {
enable = true;
defaultEditor = true;
vimAlias = true;
clipboard.register = "unnamedplus";
colorschemes.gruvbox.enable = true;
plugins = {
presence-nvim = {
enable = true;
mainImage = "file";
};
bufferline = {
enable = true;
separatorStyle = "slope";
};
treesitter = {
enable = true;
indent = true;
nixvimInjections = true;
};
treesitter-context.enable = true;
nvim-tree = {
enable = true;
renderer.groupEmpty = true;
};
lualine.enable = true;
};
keymaps = [
{
mode = "n";
key = "<C-n>";
action = "<cmd>NvimTreeToggle<CR>";
}
];
opts = {
number = 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;
};
};
}

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 = [
./alpha.nix
./cmp.nix
./lsp.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 = [
./fonts
# ./fonts
./sound
./vm
./packages

View file

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

View file

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

View file

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