summaryrefslogtreecommitdiffstats
path: root/lua
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
parent2868e0ca36c24a5d99c9d081cd934231818cdb78 (diff)
downloadneovim-config-26d83034fd6d20a9c579156be15ec1fdfd7164fb.tar.gz
neovim-config-26d83034fd6d20a9c579156be15ec1fdfd7164fb.tar.bz2
neovim-config-26d83034fd6d20a9c579156be15ec1fdfd7164fb.zip
gui
Diffstat (limited to 'lua')
-rw-r--r--lua/lualine/theme.lua34
-rw-r--r--lua/plugins/colorscheme.lua2
-rw-r--r--lua/plugins/interface.lua74
3 files changed, 68 insertions, 42 deletions
diff --git a/lua/lualine/theme.lua b/lua/lualine/theme.lua
new file mode 100644
index 0000000..ef06872
--- /dev/null
+++ b/lua/lualine/theme.lua
@@ -0,0 +1,34 @@
+local colors = require("monokai-pro.colorscheme").colors
+
+local monokai_pro = {}
+
+monokai_pro.normal = {
+ a = { bg = colors.base.yellow, fg = colors.base.black, gui = "bold" },
+ b = { bg = nil, fg = colors.base.yellow },
+ c = {
+ bg = nil,
+ fg = colors.statusBar.activeForeground,
+ },
+}
+
+monokai_pro.insert = {
+ a = { bg = colors.base.cyan, fg = colors.base.black },
+ b = { bg = colors.editor.background, fg = colors.base.cyan },
+}
+
+
+monokai_pro.visual = {
+ a = { bg = colors.base.magenta, fg = colors.base.black },
+ b = { bg = colors.editor.background, fg = colors.base.magenta },
+}
+
+monokai_pro.replace = {
+ a = { bg = colors.base.red, fg = colors.base.black },
+ b = { bg = colors.base.dimmed5, fg = colors.base.red },
+}
+
+monokai_pro.inactive = {
+ z = { bg = colors.editor.background, fg = colors.base.yellow },
+}
+
+return monokai_pro
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,
},
{