🧹 Organizing

Moved code to separate files.

Rofi config in home-manager.

Moved home.nix to /home.

Scripts to format and rebuild
This commit is contained in:
2024-12-29 00:34:39 +01:00
parent 8e91b0ca78
commit f60462a770
18 changed files with 386 additions and 209 deletions

58
home/nixvim/default.nix Normal file
View File

@ -0,0 +1,58 @@
# Neovim configuration for Nix
{ ... }:
{
programs.nixvim = {
enable = true;
clipboard.providers.wl-copy.enable = true;
opts = {
number = true; # Show line numbers
relativenumber = true; # Show relative line numbers
shiftwidth = 2; # Tab width should be 2
};
plugins = {
bufferline.enable = true;
# Formatters
conform-nvim = {
enable = true;
# TODO use nix fmt on save
settings = { };
};
lsp = {
enable = true;
servers = {
nixd.enable = true;
};
};
lualine.enable = true;
luasnip.enable = true;
# Completions
cmp = {
enable = true;
autoEnableSources = true;
# TODO complete on <tab>
settings = {
sources = [
{ name = "nvim-lsp"; }
{ name = "path"; }
{ name = "buffer"; }
];
};
};
treesitter.enable = true;
web-devicons.enable = true;
};
};
}