ソースを参照

feat: fix a couple of issues (#2750)

* fix(nvimtree): do not set key if disabled

* fix(telescope): move pickers of out defaults

* fix(install): use proper gentoo installation
Abouzar Parvan 3 年 前
コミット
0ee8b8f653
3 ファイル変更10 行追加10 行削除
  1. 1 1
      lua/lvim/core/nvimtree.lua
  2. 8 8
      lua/lvim/core/telescope.lua
  3. 1 1
      utils/installer/install.sh

+ 1 - 1
lua/lvim/core/nvimtree.lua

@@ -148,7 +148,6 @@ function M.config()
       },
     },
   }
-  lvim.builtin.which_key.mappings["e"] = { "<cmd>NvimTreeToggle<CR>", "Explorer" }
 end
 
 function M.setup()
@@ -163,6 +162,7 @@ function M.setup()
     return
   end
 
+  lvim.builtin.which_key.mappings["e"] = { "<cmd>NvimTreeToggle<CR>", "Explorer" }
   lvim.builtin.nvimtree._setup_called = true
 
   -- Implicitly update nvim-tree when project module is active

+ 8 - 8
lua/lvim/core/telescope.lua

@@ -70,14 +70,14 @@ function M.config()
       borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
       color_devicons = true,
       set_env = { ["COLORTERM"] = "truecolor" }, -- default = nil,
-      pickers = {
-        find_files = {
-          hidden = true,
-        },
-        live_grep = {
-          --@usage don't include the filename in the search results
-          only_sort_text = true,
-        },
+    },
+    pickers = {
+      find_files = {
+        hidden = true,
+      },
+      live_grep = {
+        --@usage don't include the filename in the search results
+        only_sort_text = true,
       },
     },
     extensions = {

+ 1 - 1
utils/installer/install.sh

@@ -160,7 +160,7 @@ function detect_platform() {
       elif [ -f "/etc/fedora-release" ] || [ -f "/etc/redhat-release" ]; then
         RECOMMEND_INSTALL="sudo dnf install -y"
       elif [ -f "/etc/gentoo-release" ]; then
-        RECOMMEND_INSTALL="emerge install -y"
+        RECOMMEND_INSTALL="emerge -tv"
       else # assume debian based
         RECOMMEND_INSTALL="sudo apt install -y"
       fi