- Added unstable overlay in order to fetch pkgs from unstable - Changed Zed-editor to unstable - Commented turn off screen timeout, still buggy - Added new Catppuccin wallpapers - Changed secondary colours on lock screen to fit wallpaper - Removed <i/> on lock screen - Added Rider, .NET 9 adn ASP.NET 9 - Readded EDITOR env to nvim
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
# Neovim configuration for Nix
|
|
{
|
|
catppuccin.nvim.enable = true;
|
|
|
|
home.sessionVariables.EDITOR = "nvim";
|
|
|
|
programs.nixvim = {
|
|
enable = true;
|
|
clipboard.providers.wl-copy.enable = true;
|
|
colorschemes.catppuccin.enable = true;
|
|
defaultEditor = true;
|
|
vimdiffAlias = true; # Alias vimdiff to nvim -d
|
|
|
|
opts = {
|
|
number = true; # Show line numbers
|
|
relativenumber = true; # Show relative line numbers
|
|
|
|
shiftwidth = 2; # Tab width should be 2
|
|
};
|
|
|
|
plugins = {
|
|
bufferline.enable = false;
|
|
|
|
# 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;
|
|
};
|
|
|
|
extraConfigLua = ''
|
|
-- Translucent background
|
|
vim.cmd [[
|
|
highlight Normal guibg=none
|
|
highlight NonText guibg=none
|
|
highlight Normal ctermbg=none
|
|
highlight NonText ctermbg=none
|
|
]]
|
|
'';
|
|
};
|
|
}
|