feat(neovim): ajout de Neovim avec LazyVim (comme Omarchy)

Starter LazyVim versionné dans files/nvim, thème Catppuccin Mocha
(identique à Ghostty). Alias n = nvim ; vim reste l'$EDITOR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-10-13 01:31:59 +02:00
co-authored by Claude Opus 5.5
parent a97f97c548
commit ac6ae897f4
9 changed files with 64 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
require("config.lazy")
+1
View File
@@ -0,0 +1 @@
-- Voir https://www.lazyvim.org/configuration/general
+1
View File
@@ -0,0 +1 @@
-- Voir https://www.lazyvim.org/configuration/general
+31
View File
@@ -0,0 +1,31 @@
-- Starter LazyVim - https://github.com/LazyVim/starter
-- Les plugins sont téléchargés par lazy.nvim au premier lancement (hors Nix) :
-- lazy-lock.json est donc écrit dans ~/.config/nvim et n'est pas versionné.
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
spec = {
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
{ import = "plugins" },
},
defaults = {
lazy = false,
version = false,
},
install = { colorscheme = { "catppuccin", "habamax" } },
checker = { enabled = true, notify = false },
})
+1
View File
@@ -0,0 +1 @@
-- Voir https://www.lazyvim.org/configuration/general
+5
View File
@@ -0,0 +1,5 @@
-- Même thème que Ghostty
return {
{ "catppuccin/nvim", name = "catppuccin", opts = { flavour = "mocha" } },
{ "LazyVim/LazyVim", opts = { colorscheme = "catppuccin" } },
}
+1
View File
@@ -55,6 +55,7 @@
./programs/ghostty.nix
./programs/git.nix
./programs/i3.nix
./programs/neovim.nix
./programs/pi.nix
./programs/zsh.nix
];
+22
View File
@@ -0,0 +1,22 @@
{ pkgs, ... }:
# LazyVim, comme Omarchy. vim reste l'$EDITOR le temps de l'essai.
{
programs.neovim = {
enable = true;
# Compilation des parsers nvim-treesitter. Les LSP installés par Mason
# tournent grâce à programs.nix-ld (nixos/configuration.nix).
extraPackages = with pkgs; [
tree-sitter
gcc
unzip
];
};
# recursive : ~/.config/nvim reste un vrai dossier, où LazyVim écrit
# lazy-lock.json et lazyvim.json.
xdg.configFile."nvim" = {
source = ../files/nvim;
recursive = true;
};
}
+1
View File
@@ -135,6 +135,7 @@
kp = "kubectl --context prod-eu7";
kp9 = "k9s --context prod-eu7";
g = "git";
n = "nvim";
gui = "gitui";
htop = "btop";
c = "claude";