56 lines
1.6 KiB
Lua
56 lines
1.6 KiB
Lua
local ensure_packer = function()
|
|
local fn = vim.fn
|
|
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
|
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
|
vim.cmd [[packadd packer.nvim]]
|
|
return true
|
|
end
|
|
return false
|
|
end
|
|
|
|
local packer_bootstrap = ensure_packer()
|
|
|
|
return require('packer').startup(function(use)
|
|
use 'wbthomason/packer.nvim'
|
|
use { "catppuccin/nvim", as = "catppuccin" }
|
|
use {
|
|
'nvim-tree/nvim-tree.lua',
|
|
requires = {
|
|
'nvim-tree/nvim-web-devicons',
|
|
},
|
|
config = function()
|
|
require("nvim-tree").setup {}
|
|
end
|
|
}
|
|
use {
|
|
'nvim-lualine/lualine.nvim',
|
|
requires = { 'nvim-tree/nvim-web-devicons', opt = true }
|
|
}
|
|
-- use 'feline-nvim/feline.nvim'
|
|
use 'williamboman/mason.nvim'
|
|
use 'williamboman/mason-lspconfig.nvim'
|
|
use 'simrat39/rust-tools.nvim'
|
|
|
|
-- Completion framework:
|
|
use 'hrsh7th/nvim-cmp'
|
|
|
|
-- LSP completion source:
|
|
use 'hrsh7th/cmp-nvim-lsp'
|
|
|
|
-- Useful completion sources:
|
|
use 'hrsh7th/cmp-nvim-lua'
|
|
use 'hrsh7th/cmp-nvim-lsp-signature-help'
|
|
use 'hrsh7th/cmp-vsnip'
|
|
use 'hrsh7th/cmp-path'
|
|
use 'hrsh7th/cmp-buffer'
|
|
use 'hrsh7th/vim-vsnip'
|
|
|
|
use 'nvim-treesitter/nvim-treesitter'
|
|
|
|
-- Synchroniser les paquetages si c'est la première exécution
|
|
if packer_bootstrap then
|
|
require('packer').sync()
|
|
end
|
|
end)
|
|
|