]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/ui.lua
nvim: add gitlab plugin
[dotfiles.git] / nvim / lua / plugins / ui.lua
index 272c027b787ddcf5a450c3c2efcb2e50fcc252f5..8e52958f400bc38cee86cf17a846fc9c60f8dc84 100644 (file)
@@ -136,7 +136,7 @@ return {
         diagnostics = "nvim_lsp",
         always_show_bufferline = false,
         diagnostics_indicator = function(_, _, diag)
-          local icons = LazyVim.config.icons.diagnostics
+          local icons = rmz.ui.icons.diagnostics
           local ret = (diag.error and icons.Error .. diag.error .. " " or "")
             .. (diag.warning and icons.Warn .. diag.warning or "")
           return vim.trim(ret)
@@ -151,7 +151,7 @@ return {
         },
         ---@param opts bufferline.IconFetcherOpts
         get_element_icon = function(opts)
-          return LazyVim.config.icons.ft[opts.filetype]
+          return rmz.ui.icons.ft[opts.filetype]
         end,
       },
     },
@@ -181,7 +181,7 @@ return {
       local lualine_require = require("lualine_require")
       lualine_require.require = require
 
-      local icons = LazyVim.config.icons
+      local icons = rmz.ui.icons
 
       vim.o.laststatus = vim.g.lualine_laststatus
 
@@ -251,6 +251,12 @@ return {
             end,
           },
         },
+        inactive_sections = {
+          lualine_c = {
+            { "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
+            { M.pretty_path() },
+          },
+        },
         extensions = { "neo-tree", "lazy", "fzf" },
       }
 
@@ -311,7 +317,7 @@ return {
   { "echasnovski/mini.indentscope",
     enabled = false,  -- replaced by snacks.indent
     version = false, -- wait till new 0.7.0 release to put it back on semver
-    event = "LazyFile",
+    event = { "BufReadPost", "BufNewFile", "BufWritePre" },
     opts = function (_, opts)
       return {
         draw = {
@@ -324,7 +330,7 @@ return {
     lazy = true,
     init = function()
       vim.g.navic_silence = true
-      LazyVim.lsp.on_attach(function(client, buffer)
+      rmz.lsp.on_attach(function(client, buffer)
         if client.supports_method("textDocument/documentSymbol") then
           require("nvim-navic").attach(client, buffer)
         end
@@ -335,7 +341,7 @@ return {
         separator = " ",
         highlight = true,
         depth_limit = 5,
-        icons = LazyVim.config.icons.kinds,
+        icons = rmz.ui.icons.kinds,
         lazy_update_context = true,
       }
     end,