summaryrefslogtreecommitdiffstats
path: root/lua/plugins
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-05-20 23:31:49 +0200
committerNanderty <psopka@sopka.ch>2023-05-20 23:31:49 +0200
commit26d83034fd6d20a9c579156be15ec1fdfd7164fb (patch)
tree4d7d774babf1456c52730aa385258fbb6d106443 /lua/plugins
parent2868e0ca36c24a5d99c9d081cd934231818cdb78 (diff)
downloadneovim-config-26d83034fd6d20a9c579156be15ec1fdfd7164fb.tar.gz
neovim-config-26d83034fd6d20a9c579156be15ec1fdfd7164fb.tar.bz2
neovim-config-26d83034fd6d20a9c579156be15ec1fdfd7164fb.zip
gui
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/colorscheme.lua2
-rw-r--r--lua/plugins/interface.lua74
2 files changed, 34 insertions, 42 deletions
diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua
index 4181b86..a857143 100644
--- a/lua/plugins/colorscheme.lua
+++ b/lua/plugins/colorscheme.lua
@@ -8,7 +8,7 @@ return {
require('monokai-pro').setup({
plugins = {
indent_blankline = {
- context_highlight = "pro",
+ context_highlight = 'pro',
},
},
override = function(c)
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,
},
{