From c46f31862a920078e131fe14a22dc649101a2390 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Fri, 14 Apr 2023 02:15:42 +0200 Subject: [PATCH] Fixing lualine not showing colors sometimes. --- nvim/init.lua | 69 ++++++++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 31 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index e7a960c..5eb7930 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -15,40 +15,47 @@ vim.opt.rtp:prepend(lazypath) -- define plugins require("lazy").setup { "bitc/vim-bad-whitespace", - { "tanvirtin/monokai.nvim", config = function() require("monokai").setup() end }, - { "NvChad/nvim-colorizer.lua", config = function() require("colorizer").setup() end }, - { "numToStr/Comment.nvim", config = function() require("Comment").setup() end }, - { "lewis6991/gitsigns.nvim", config = function() require("gitsigns").setup { - signs = { - add = { text = "▎" }, - change = { text = "▎" }, - delete = { text = "▎" }, - topdelete = { text = "契" }, - changedelete = { text = "▎" }, - untracked = { text = "▎" }, - }, - } end }, - { "nvim-lualine/lualine.nvim", config = function() require("lualine").setup { - options = { - component_separators = '', - icons_enabled = false, - section_separators = '', - theme = "powerline", - }, - sections = { - lualine_a = { "mode" }, - lualine_b = { { "filename", file_status = true, path = 1 } }, - lualine_c = { "branch" }, - lualine_x = { "filetype" }, - lualine_y = { "progress" }, - lualine_z = { "location" }, - }, - } end }, - { "nvim-treesitter/nvim-treesitter", config = function() require("nvim-treesitter.configs").setup { + "NvChad/nvim-colorizer.lua", + "numToStr/Comment.nvim", + "lewis6991/gitsigns.nvim", + "tanvirtin/monokai.nvim", + "nvim-lualine/lualine.nvim", + "nvim-treesitter/nvim-treesitter", +} + +require("monokai").setup{} +require("Comment").setup{} +require("colorizer").setup{} +require("gitsigns").setup { + signs = { + add = { text = "▎" }, + change = { text = "▎" }, + delete = { text = "▎" }, + topdelete = { text = "契" }, + changedelete = { text = "▎" }, + untracked = { text = "▎" }, + }, +} +require("lualine").setup { + options = { + component_separators = '', + icons_enabled = false, + section_separators = '', + theme = "powerline", + }, + sections = { + lualine_a = { "mode" }, + lualine_b = { { "filename", file_status = true, path = 1 } }, + lualine_c = { "branch" }, + lualine_x = { "filetype" }, + lualine_y = { "progress" }, + lualine_z = { "location" }, + }, +} +require("nvim-treesitter.configs").setup { build = ":TSUpdate", ensure_installed = { "bash", "python", "terraform", "vim", "yaml" }, highlight = { enable = true }, - } end }, } -- modify colorcheme