diff options
| author | Nanderty <psopka@sopka.ch> | 2023-05-20 23:31:49 +0200 |
|---|---|---|
| committer | Nanderty <psopka@sopka.ch> | 2023-05-20 23:31:49 +0200 |
| commit | 26d83034fd6d20a9c579156be15ec1fdfd7164fb (patch) | |
| tree | 4d7d774babf1456c52730aa385258fbb6d106443 /lua/plugins/interface.lua | |
| parent | 2868e0ca36c24a5d99c9d081cd934231818cdb78 (diff) | |
| download | neovim-config-26d83034fd6d20a9c579156be15ec1fdfd7164fb.tar.gz neovim-config-26d83034fd6d20a9c579156be15ec1fdfd7164fb.tar.bz2 neovim-config-26d83034fd6d20a9c579156be15ec1fdfd7164fb.zip | |
gui
Diffstat (limited to 'lua/plugins/interface.lua')
| -rw-r--r-- | lua/plugins/interface.lua | 74 |
1 files changed, 33 insertions, 41 deletions
diff --git a/lua/plugins/interface.lua b/lua/plugins/interface.lua index 75ce306..e3f5980 100644 --- a/lua/plugins/interface.lua +++ b/lua/plugins/interface.lua @@ -2,51 +2,43 @@ return { { 'nvim-lualine/lualine.nvim', event = 'VeryLazy', - config = function() - vim.api.nvim_set_hl(0, 'StatusLine', { bg = nil }) - vim.api.nvim_set_hl(0, 'StatusLineNC', { bg = nil }) - - local monokai_pro = require("lualine.themes.monokai-pro") - monokai_pro.normal.b.bg = nil - monokai_pro.normal.c.bg = nil - monokai_pro.normal.c.fg = nil - monokai_pro.inactive.z = { - bg = nil, - fg = require("monokai-pro.colorscheme").colors.base.yellow, - } - - local function separator() - return [[separator]] - end - - require('lualine').setup { - options = { - theme = monokai_pro, - }, - sections = { - lualine_b = { - 'branch', - { - 'diagnostics', - symbols = { - error = 'E', - warn = 'W', - info = 'I', - hint = 'H' - }, + opts = { + options = { + theme = function() return require('lualine.theme') end, + }, + sections = { + lualine_b = { + 'branch', + { + 'diagnostics', + symbols = { + error = 'E', + warn = 'W', + info = 'I', + hint = 'H' }, }, - lualine_c = {}, - lualine_x = {}, - lualine_y = {}, - lualine_z = { - 'buffers', - }, }, - inactive_sections = { - lualine_x = {}, + lualine_c = {}, + lualine_x = {}, + lualine_y = {}, + lualine_z = { + 'buffers', }, - } + }, + inactive_sections = { + lualine_b = { + function() + return ' ' + end, + }, + lualine_x = {}, + }, + }, + config = function(_, opts) + require('lualine').setup(opts) + vim.api.nvim_set_hl(0, 'StatusLine', { bg = nil }) + vim.api.nvim_set_hl(0, 'StatusLineNC', { bg = nil }) end, }, { |
