diff --git a/nvim/init.vim b/nvim/init.vim index 3a29419..88f0812 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -36,6 +36,8 @@ Plug 'ms-jpq/coq_nvim', {'branch': 'coq'} " 9000+ Snippets Plug 'ms-jpq/coq.artifacts', {'branch': 'artifacts'} Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} +Plug 'xiyaowong/transparent.nvim' +Plug 'justinhj/battery.nvim' call plug#end() set bg=dark diff --git a/nvim/lua/init.lua b/nvim/lua/init.lua index 1e1b029..f54d9f7 100644 --- a/nvim/lua/init.lua +++ b/nvim/lua/init.lua @@ -3,3 +3,4 @@ require('plugins.feline') require('gitsigns').setup() require('plugins.matlab_ls') require('plugins.treesitter') +require('battery').setup() diff --git a/nvim/lua/plugins/feline.lua b/nvim/lua/plugins/feline.lua index 96a337b..db20359 100644 --- a/nvim/lua/plugins/feline.lua +++ b/nvim/lua/plugins/feline.lua @@ -53,7 +53,6 @@ status_components.active[3][1] = { } status_components.active[3][2] = { provider = 'position' - } status_components.active[3][3] = { provider = 'line_percentage', @@ -72,7 +71,7 @@ status_components.active[3][4] = { } local custom_providers = { time = function() - return tostring(vim.fn.strftime('%H:%M')) + return tostring(vim.fn.strftime('%H:%M')) end, git_add = function() return git_diff('added'), '  ' @@ -85,7 +84,13 @@ local custom_providers = { end, word_count = function() return vim.fn.wordcount().words .. 'W ' - end + end, + date = function() + return tostring(vim.fn.strftime('%Y-%m-%d')) + end, + battery = function() + return require('battery').get_status_line() + end } status_config.components = status_components status_config.custom_providers = custom_providers @@ -180,6 +185,24 @@ win_components.active[3][4] = { right_sep = 'right_rounded' } win_components.active[3][5] = { + provider = 'battery', + left_sep = { + str = 'block' + }, + right_sep = { + str = 'block' + } +} +win_components.active[3][6] = { + provider = 'date', + left_sep = { + str = 'block' + }, + right_sep = { + str = 'block' + } +} +win_components.active[3][7] = { provider = 'time', left_sep = { str = 'block'