From 44c9c07accbcde2f63fed52bbc80dccefd5b0295 Mon Sep 17 00:00:00 2001 From: nganhkhoa Date: Mon, 5 Apr 2021 17:15:32 +0700 Subject: [PATCH] add statusline --- lua/plugins.lua | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index e79914f..d273fd6 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -4,6 +4,38 @@ packer.startup(function(use) use 'wbthomason/packer.nvim' use 'Olical/aniseed' + use { + 'hoob3rt/lualine.nvim', + requires = {'kyazdani42/nvim-web-devicons', opt = true}, + config = function() + require('lualine').setup{ + options = { + theme = 'nord', + section_separators = {'', ''}, + component_separators = {'', ''}, + icons_enabled = true, + }, + sections = { + lualine_a = { {'mode', upper = true} }, + lualine_b = { {'branch', icon = ''} }, + lualine_c = { {'filename', file_status = true} }, + lualine_x = { 'encoding', 'fileformat', 'filetype' }, + lualine_y = { 'progress' }, + lualine_z = { 'location' }, + }, + inactive_sections = { + lualine_a = { }, + lualine_b = { }, + lualine_c = { 'filename' }, + lualine_x = { 'location' }, + lualine_y = { }, + lualine_z = { } + }, + extensions = { 'fugitive' } + } + end + } + use 'Yggdroot/indentLine' use 'ntpeters/vim-better-whitespace' use 'valloric/matchtagalways'