From daa12ac1a822a39304242fb8f00ea28374038834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Fri, 24 Feb 2023 11:04:06 +0100 Subject: [PATCH] common: changed theme and added glow --- lua/plugins/common.lua | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lua/plugins/common.lua b/lua/plugins/common.lua index 0f5a0ff..4747f49 100644 --- a/lua/plugins/common.lua +++ b/lua/plugins/common.lua @@ -1,12 +1,15 @@ return { -- NOTE: Theme { - 'ellisonleao/gruvbox.nvim', + 'sainnhe/gruvbox-material', priority = 1000, config = function() - require('gruvbox').setup({ contrast = 'soft', italic = false }) - vim.cmd.colorscheme 'gruvbox' + vim.g.gruvbox_material_background = 'soft' + vim.g.gruvbox_material_foreground = 'original' + vim.g.gruvbox_material_better_performance = 1 + + vim.cmd.colorscheme 'gruvbox-material' end, }, @@ -19,7 +22,7 @@ return { -- Detect tabstop and shiftwidth automatically 'tpope/vim-sleuth', - -- NOTE: Second, plugins that require setup call + -- NOTE: Second, plugins that require setup call (done via opts) -- Useful plugin to show you pending keybinds. { 'folke/which-key.nvim', opts = {} }, @@ -33,6 +36,9 @@ return { -- highlighting for comments { "folke/todo-comments.nvim", dependencies = "nvim-lua/plenary.nvim", opts = {} }, + -- markdown preview using glow + { "ellisonleao/glow.nvim", config = true, cmd = "Glow" }, + -- NOTE: Third, plugins that require some setup, but not enugh for separate file { -- Adds git releated signs to the gutter, as well as utilities for managing changes @@ -55,7 +61,7 @@ return { opts = { options = { icons_enabled = false, - theme = 'gruvbox', + theme = 'gruvbox-material', statusline_style = 'mix', component_separators = '|', section_separators = '',