37 lines
1.1 KiB
Lua
37 lines
1.1 KiB
Lua
-- 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/
|