From 34743fa9d49f0a2a381345372e556c9ba4dd4469 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Fri, 7 Apr 2023 17:04:04 +0200 Subject: [PATCH] Polishing init.lua. --- nvim/init.lua | 69 ++++++++++++++++++++++++--------------------------- 1 file changed, 32 insertions(+), 37 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index c552459..e5fd171 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -14,46 +14,41 @@ 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 }, - -- "bitc/vim-bad-whitespace", - "lewis6991/gitsigns.nvim", - "nvim-lualine/lualine.nvim", - "nvim-treesitter/nvim-treesitter", -} - --- configure plugins, if needed -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 }, + { "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 { + build = ":TSUpdate", + ensure_installed = { "bash", "python", "terraform", "vim", "yaml" }, + highlight = { enable = true }, + } end }, } -- modify colorcheme