.config/nvim/lua/plugins/ui.lua

changeset 1014
b57969db48db
child 1015
21950cadff6b
new file mode 100644
--- /dev/null
+++ b/.config/nvim/lua/plugins/ui.lua
@@ -0,0 +1,55 @@
+return {
+  {
+    "nvim-lualine/lualine.nvim",
+    opts = {
+      options = {
+        theme = "auto",
+        icons_enabled = false,
+        section_separators = "",
+        component_separators = "",
+        globalstatus = true
+      },
+      tabline = {
+        lualine_a = { {'buffers', mode = 4} },
+      }
+    }
+  },
+
+  {
+    "lukas-reineke/indent-blankline.nvim",
+    event = "BufReadPost",
+    keys = {
+      {"<leader>ig", "<cmd>IndentBlanklineToggle<cr>"},
+    },
+    opts = {
+      enabled = false,
+      char = "│",
+      filetype_exclude = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy" },
+      show_trailing_blankline_indent = false,
+      show_current_context = false,
+    },
+  },
+
+  {
+    "echasnovski/mini.indentscope",
+    version = false, -- wait till new 0.7.0 release to put it back on semver
+    event = "BufReadPre",
+    opts = {
+      symbol = "│",
+      -- symbol = "▏",
+      options = { try_as_border = true },
+      draw = {
+        animation = function() return 2 end,
+      },
+    },
+    config = function(_, opts)
+      vim.api.nvim_create_autocmd("FileType", {
+        pattern = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason" },
+        callback = function()
+          vim.b.miniindentscope_disable = true
+        end,
+      })
+      require("mini.indentscope").setup(opts)
+    end,
+  },
+}

mercurial