aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2023-03-30 21:54:32 +0300
committerValentin Popov <valentin@popov.link>2023-03-30 21:54:32 +0300
commit0f024abb5200ee0e6c96320cadeaba446682cb85 (patch)
tree11f9ca04df81d9d108d8d2c0cd6ccaa5cb36574f /lua/plugins.lua
parent3dc419e3610dc248f3fedc1e4fba3d42a97b2863 (diff)
downloadnvim-config-0f024abb5200ee0e6c96320cadeaba446682cb85.tar.xz
nvim-config-0f024abb5200ee0e6c96320cadeaba446682cb85.zip
Переработал структуру настроек и плагинов
Signed-off-by: Valentin Popov <valentin@popov.link>
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)