init.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. vim.cmd([[
  2. set lazyredraw " improve scrolling performance when navigating through large results
  3. let g:far#window_width=30
  4. " Use %:p with buffer option only
  5. let g:far#file_mask_favorites=['%:p', '**/*.*', '**/*.js', '**/*.py', '**/*.java', '**/*.css', '**/*.html', '**/*.vim', '**/*.cpp', '**/*.c', '**/*.h', ]
  6. let g:far#window_min_content_width=30
  7. let g:far#enable_undo=1
  8. " let g:far#ignore_files=['$HOME/.config/nvim/utils/farignore']
  9. " let g:far#ignore_files=['node_modules/']
  10. " Below are the default mappings and corresponding variable names in
  11. " x v_x - Exclude item under the cursor.
  12. " i v_i - Include item under the cursor.
  13. " t v_t - Toggle item exclusion under the cursor.
  14. " f v_f - Smartly toggle item exclusion under the cursor: exclude all items when all are excluded, otherwise exclude all items.
  15. " X - Exclude all items.
  16. " I - Include all items.
  17. " T - Toggle exclusion for all items.
  18. " F - Smartly toggle exclusion for all items: include all items when all are excluded, otherwise exclude all items.
  19. " <CR> - Jump to the source code of the item under the cursor. See |far-jump|
  20. " p - Open preview window (if not) and scroll to the item under the cursor. See |far-preview|
  21. " P - Close preview window. See |far-preview|
  22. " CTRL-K - Scroll preview window up (if open). See |far-preview|, |g:far#preview_window_scroll_step|
  23. " CTRL-J - Scroll preview window down (if open). See |far-preview|, |g:far#preview_window_scroll_step|
  24. " zo - Expand node under the cursor.
  25. " zc - Collapse node under the cursor.
  26. " za - Toggle node expanding under the cursor.
  27. " zs - Smartly toggle exclusion for all nodes: expand all nodes when all are collapsed, otherwise collapse all nodes.
  28. " zr v_zr - Expand all nodes.
  29. " zm v_zm - Collapse all nodes.
  30. " zA v_zA - Toggle exclusion for all nodes.
  31. " zS v_zS - Smartly toggle exclusion for all nodes: expand all nodes when all are collapsed, otherwise collapse all nodes.
  32. " s v_s - Execute |:Fardo|<CR>, to replace all included items.
  33. " u v_s - Execute |:Farundo|<CR>, to undo the last replacement by |:Fardo|.
  34. " U v_U - Execute |:Farundo| --all=1<CR>, to undo all replacements by |:Fardo|. For param '--all=' see |farundo-params|.
  35. " q v_q - Close searching result buffer and its preview buffer (if exists)
  36. ]])