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

Mon, 27 Mar 2023 15:27:01 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 27 Mar 2023 15:27:01 -0500
changeset 1093
3d970272f1a3
parent 1081
59e05e03851d
child 1116
2d8f07b212e9
permissions
-rw-r--r--

fix surprise reindent

local g = vim.g

-- >> Viewdoc
g.no_viewdoc_abbrev = 1
g.viewdoc_open = "topleft new"
g.viewdoc_winwidth_max = 100

return {
  { "powerman/vim-plugin-viewdoc", event = "VeryLazy" },

  {
    "nvim-lualine/lualine.nvim",
    opts = {
      options = {
        theme = "auto",
        icons_enabled = false,
        section_separators = "",
        component_separators = "",
      },
      sections = {
        lualine_a = { "mode" },
        lualine_b = { "filename" },
        lualine_c = { "diagnostics" },
        lualine_x = { "encoding", "fileformat" },
        lualine_y = { "filetype" },
        lualine_z = { "progress", "location" },
      },
      tabline = {
        lualine_a = { { "buffers", mode = 4, show_filename_only = false } },
        lualine_z = { "branch" },
      },
      extensions = { "quickfix" },
    },
  },

  {
    "lukas-reineke/indent-blankline.nvim",
    lazy = false,
    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