diff --git a/init.lua b/init.lua index b350420..7d21467 100644 --- a/init.lua +++ b/init.lua @@ -9,7 +9,6 @@ if not vim.loop.fs_stat(lazypath) then "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", - "--branch=v11.17.1", lazypath, }) end diff --git a/lua/options.lua b/lua/options.lua index 6175ff5..1e7c7fe 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -1,5 +1,10 @@ -vim.opt.guicursor = "" -vim.opt.relativenumber = false -vim.opt.shiftwidth = 4 +vim.opt.guicursor = "" -- Désactiver le changement de curseur + +vim.opt.number = true -- Activer les numéros de ligne +vim.opt.relativenumber = false -- Désactiver les numéros de ligne relatifs + +vim.opt.shiftwidth = 4 -- Définir la taille du tab à 4 + +-- Définir le leader à espace vim.g.mapleader = " " vim.g.maplocalleader = " " diff --git a/lua/plugins.lua b/lua/plugins.lua index 055a7b1..22599fc 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -1,4 +1,6 @@ return { require("plugins.catppuccin"), - require("plugins.nvim-tree") + require("plugins.lualine"), + require("plugins.nvim-tree"), + require("plugins.telescope") } diff --git a/lua/plugins/catppuccin.lua b/lua/plugins/catppuccin.lua index 53511b9..92cf827 100644 --- a/lua/plugins/catppuccin.lua +++ b/lua/plugins/catppuccin.lua @@ -1,7 +1,5 @@ return { "catppuccin/nvim", - tag = "v1.11.0", - name = "catppuccin", config = function() require("catppuccin").setup({ flavour = "mocha", diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua new file mode 100644 index 0000000..e2edd78 --- /dev/null +++ b/lua/plugins/lualine.lua @@ -0,0 +1,15 @@ +return { + "nvim-lualine/lualine.nvim", + dependencies = { + { + "nvim-tree/nvim-web-devicons", + } + }, + config = function() + require("lualine").setup({ + options = { + theme = "catppuccin" + } + }) + end +} diff --git a/lua/plugins/nvim-tree.lua b/lua/plugins/nvim-tree.lua index c73179e..f963dfa 100644 --- a/lua/plugins/nvim-tree.lua +++ b/lua/plugins/nvim-tree.lua @@ -1,13 +1,10 @@ return { "nvim-tree/nvim-tree.lua", - tag = "v1.14.0", dependencies = { { "nvim-tree/nvim-web-devicons", - tag = "v0.100" } }, - name = "nvim-tree", config = function() require("nvim-tree").setup({ view = { diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..862e8d2 --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,14 @@ +return { + "nvim-telescope/telescope.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + }, + config = function() + require("telescope").setup({ + defaults = { + prompt_prefix = "🔍 ", + sorting_strategy = "ascending" + } + }) + end +}