From 0f024abb5200ee0e6c96320cadeaba446682cb85 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 30 Mar 2023 22:54:32 +0400 Subject: Переработал структуру настроек и плагинов MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Valentin Popov --- lua/plugins.lua | 44 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 9 deletions(-) (limited to 'lua/plugins.lua') diff --git a/lua/plugins.lua b/lua/plugins.lua index f306c12..385ed3e 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -1,16 +1,42 @@ --- This file can be loaded by calling `lua require('plugins')` from your init.vim - --- Only required if you have packer configured as `opt` -vim.cmd [[packadd packer.nvim]] +vim.cmd.packadd('packer.nvim') return require('packer').startup(function(use) - use { 'wbthomason/packer.nvim', opt = true } + -- Авто-установка пакетного менеджера + use 'wbthomason/packer.nvim' - use { 'EdenEast/nightfox.nvim' } + -- Тема редактора + use { + 'EdenEast/nightfox.nvim', + config = function() + vim.cmd('colorscheme carbonfox') + end, + } - use { 'nvim-lualine/lualine.nvim' } + -- Статусная полоса + use { + 'nvim-lualine/lualine.nvim', + config = function() + require('lualine').setup { + sections = { + lualine_a = { 'mode' }, + lualine_b = { 'branch', 'diff' }, + lualine_c = { 'filename' }, + lualine_x = { 'encoding', 'filetype', 'filesize' }, + lualine_y = { 'progress' }, + lualine_z = { 'location' }, + } + } + end, + } - use { 'numToStr/Comment.nvim' } + -- Комментирование строк + use { + 'numToStr/Comment.nvim', + config = function() + require('Comment').setup() + end, + } - use { 'nvim-treesitter/nvim-treesitter' } + -- Расширенная подсветка синтаксиса + use 'nvim-treesitter/nvim-treesitter' end) -- cgit v1.2.3