Modularize nixvim config

This commit is contained in:
2025-07-06 22:46:23 +02:00
parent 4131b9b116
commit 407f943102
10 changed files with 166 additions and 129 deletions
@@ -0,0 +1,19 @@
{ pkgs, ... }: {
imports = [
./treesitter.nix
./lualine.nix
./nvim-autopairs.nix
./which-key.nix
];
programs.nixvim = {
plugins = {
lz-n.enable = true;
indent-blankline.enable = true;
};
extraPlugins = with pkgs.vimPlugins; [
vim-sleuth
];
};
}
@@ -0,0 +1,21 @@
{
programs.nixvim.plugins.lualine = {
enable = true;
settings = {
options = {
section_separators = "";
component_separators = "";
};
sections = {
lualine_b = [
{
__unkeyed-1 = "branch";
icon = "";
}
];
lualine_c = ["filename"];
lualine_x = ["filetype"];
};
};
};
}
@@ -0,0 +1,9 @@
{
programs.nixvim.plugins.nvim-autopairs = {
enable = true;
lazyLoad = {
enable = true;
settings.event = "InsertEnter";
};
};
}
@@ -0,0 +1,16 @@
{ pkgs, ... }: {
programs.nixvim = {
plugins.treesitter = {
enable = true;
settings = {
auto_install = true;
highlight.enable = true;
indent.enable = true;
};
};
extraPackages = with pkgs; [
gcc
];
};
}
@@ -0,0 +1,9 @@
{
programs.nixvim.plugins.which-key = {
enable = true;
lazyLoad = {
enable = true;
settings.event = "VimEnter";
};
};
}