Add new config

This commit is contained in:
riesjack
2026-03-08 18:36:36 +01:00
parent aaa8c9a592
commit 291e981da1
9 changed files with 142 additions and 0 deletions

36
init.lua Normal file
View File

@@ -0,0 +1,36 @@
-- Désactive l'avertissement de dépréciation de nvim-lspconfig
vim.g.lspconfig_suppress_deprecation_warning = true
-- Au lieu de : set number
vim.opt.number = true
vim.opt.relativenumber = true -- Très utile pour les sauts de ligne en tant que dev
-- Indentation (Python/C friendly)
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
-- Recherche
vim.opt.ignorecase = true
vim.opt.smartcase = true
-- Clipboard (pour copier vers l'OS directement)
vim.opt.clipboard = "unnamedplus"
-- 1. Définir la touche Leader (Espace est le standard moderne)
vim.g.mapleader = " "
-- 2. Installer Lazy.nvim si absent
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git", "clone", "--filter=blob:none",
"https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
-- 3. Charger tes options et tes plugins
require("core.options")
require("core.keymaps")
require("lazy").setup("plugins") -- Il va chercher les fichiers dans lua/plugins/