aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua44
1 files changed, 35 insertions, 9 deletions
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)