This commit is contained in:
joygnu 2024-07-08 19:43:04 +02:00
parent 3438e5253d
commit 5cb5fda6bd
5 changed files with 24 additions and 136 deletions

View file

@ -10,7 +10,8 @@ home.username = "joy";
EDITOR = "nvim"; EDITOR = "nvim";
}; };
qt.enable = true; qt.enable = true;
qt.style.name = "adwaita"; qt.platformTheme.name = "gtk";
qt.style.name = "adwaita-dark";
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;
};
lualine.enable = true;
}; };
keymaps = [ opts = {
{ number = true;
mode = "n"; tabstop = 2;
key = "<C-n>"; softtabstop = 2;
action = "<cmd>NvimTreeToggle<CR>"; 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 = [ 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;
};
};
}