Bladeren bron

udpates escape immediately closes telescope

Chris 4 jaren geleden
bovenliggende
commit
098c00fbbd
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      lua/nv-far/init.lua
  2. 1 1
      lua/nv-telescope/init.lua

+ 1 - 1
lua/nv-far/init.lua

@@ -1,7 +1,7 @@
 vim.cmd([[
 set lazyredraw            " improve scrolling performance when navigating through large results
 
-let g:far#window_width=50
+let g:far#window_width=30
 " Use %:p with buffer option only
 let g:far#file_mask_favorites=['%:p', '**/*.*', '**/*.js', '**/*.py', '**/*.java', '**/*.css', '**/*.html', '**/*.vim', '**/*.cpp', '**/*.c', '**/*.h', ]
 let g:far#window_min_content_width=30

+ 1 - 1
lua/nv-telescope/init.lua

@@ -42,6 +42,7 @@ require('telescope').setup {
                 -- To disable a keymap, put [map] = false
                 -- So, to not map "<C-n>", just put
                 -- ["<c-x>"] = false,
+                ["<esc>"] = actions.close,
 
                 -- Otherwise, just set the mapping to the function that you want it to be.
                 -- ["<C-i>"] = actions.select_horizontal,
@@ -55,7 +56,6 @@ require('telescope').setup {
             n = {
                 ["<C-j>"] = actions.move_selection_next,
                 ["<C-k>"] = actions.move_selection_previous
-                -- ["<esc>"] = actions.close,
                 -- ["<C-i>"] = my_cool_custom_action,
             }
         }