فهرست منبع

update galaxyline

Chris 4 سال پیش
والد
کامیت
892a5c942a
2فایلهای تغییر یافته به همراه33 افزوده شده و 32 حذف شده
  1. 3 2
      coc-settings.json
  2. 30 30
      lua/galaxy-line.lua

+ 3 - 2
coc-settings.json

@@ -16,8 +16,9 @@
   // "diagnostic.displayByAle": true,
   // "diagnostic.displayByAle": true,
   // "diagnostic.virtualText": true, // this won't work with codelens when error on same line
   // "diagnostic.virtualText": true, // this won't work with codelens when error on same line
 
 
-  // codelens TODO what does this get me?
-  // "codeLens.enable": true,
+  // codelens
+  "codeLens.enable": true,
+  "java.referencesCodeLens.enabled": true,
 
 
   // list
   // list
   "list.indicator": ">",
   "list.indicator": ">",

+ 30 - 30
lua/galaxy-line.lua

@@ -81,14 +81,14 @@ gls.left[2] = {
 --   }
 --   }
 -- }
 -- }
 
 
-gls.left[5] = {
+gls.left[3] = {
   GitIcon = {
   GitIcon = {
     provider = function() return '  ' end,
     provider = function() return '  ' end,
     condition = buffer_not_empty,
     condition = buffer_not_empty,
     highlight = {colors.orange,colors.bg},
     highlight = {colors.orange,colors.bg},
   }
   }
 }
 }
-gls.left[6] = {
+gls.left[4] = {
   GitBranch = {
   GitBranch = {
     provider = 'GitBranch',
     provider = 'GitBranch',
     condition = buffer_not_empty,
     condition = buffer_not_empty,
@@ -104,31 +104,31 @@ local checkwidth = function()
   return false
   return false
 end
 end
 
 
--- gls.left[7] = {
---   DiffAdd = {
---     provider = 'DiffAdd',
---     condition = checkwidth,
---     icon = ' ',
---     highlight = {colors.green,colors.purple},
---   }
--- }
--- gls.left[8] = {
---   DiffModified = {
---     provider = 'DiffModified',
---     condition = checkwidth,
---     icon = ' ',
---     highlight = {colors.orange,colors.purple},
---   }
--- }
--- gls.left[9] = {
---   DiffRemove = {
---     provider = 'DiffRemove',
---     condition = checkwidth,
---     icon = ' ',
---     highlight = {colors.red,colors.purple},
---   }
--- }
-gls.left[10] = {
+gls.left[5] = {
+  DiffAdd = {
+    provider = 'DiffAdd',
+    condition = checkwidth,
+    icon = '  ',
+    highlight = {colors.green,colors.bg},
+  }
+}
+gls.left[6] = {
+  DiffModified = {
+    provider = 'DiffModified',
+    condition = checkwidth,
+    icon = '  ',
+    highlight = {colors.blue,colors.bg},
+  }
+}
+gls.left[7] = {
+  DiffRemove = {
+    provider = 'DiffRemove',
+    condition = checkwidth,
+    icon = '  ',
+    highlight = {colors.red,colors.bg},
+  }
+}
+gls.left[8] = {
   LeftEnd = {
   LeftEnd = {
     provider = function() return ' ' end,
     provider = function() return ' ' end,
     separator = ' ',
     separator = ' ',
@@ -136,19 +136,19 @@ gls.left[10] = {
     highlight = {colors.purple,colors.bg}
     highlight = {colors.purple,colors.bg}
   }
   }
 }
 }
-gls.left[11] = {
+gls.left[9] = {
   DiagnosticError = {
   DiagnosticError = {
     provider = 'DiagnosticError',
     provider = 'DiagnosticError',
     icon = '  ',
     icon = '  ',
     highlight = {colors.red,colors.bg}
     highlight = {colors.red,colors.bg}
   }
   }
 }
 }
-gls.left[12] = {
+gls.left[10] = {
   Space = {
   Space = {
     provider = function () return '' end
     provider = function () return '' end
   }
   }
 }
 }
-gls.left[13] = {
+gls.left[11] = {
   DiagnosticWarn = {
   DiagnosticWarn = {
     provider = 'DiagnosticWarn',
     provider = 'DiagnosticWarn',
     icon = '  ',
     icon = '  ',