瀏覽代碼

feat: new file cmd for dashboard + icon update (#1849)

Antonio Hickey 3 年之前
父節點
當前提交
ffd1d5e165
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. 8 4
      lua/lvim/core/dashboard.lua

+ 8 - 4
lua/lvim/core/dashboard.lua

@@ -31,22 +31,26 @@ M.config = function(config)
 
     custom_section = {
       a = {
-        description = { "  Find File          " },
+        description = { "  Find File          " },
         command = "Telescope find_files",
       },
       b = {
+        description = { "  New File           " },
+        command = ":ene!",
+      },
+      c = {
         description = { "  Recent Projects    " },
         command = "Telescope projects",
       },
-      c = {
+      d = {
         description = { "  Recently Used Files" },
         command = "Telescope oldfiles",
       },
-      d = {
+      e = {
         description = { "  Find Word          " },
         command = "Telescope live_grep",
       },
-      e = {
+      f = {
         description = { "  Configuration      " },
         command = ":e " .. config.user_config_file,
       },