From 85d4edc1c1e6f90d82f4363b5682bde8ae80cf5e Mon Sep 17 00:00:00 2001 From: geoboom Date: Tue, 20 Oct 2020 19:51:04 +0800 Subject: [PATCH] Fix Vim setup snippet --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 48c014d7..0c2c2a53 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Note that the old version has less features and is much slower than the new one. ## Install Install with [vim-plug](https://github.com/junegunn/vim-plug): + ```vim " master (neovim git) Plug 'kyazdani42/nvim-web-devicons' " for file icons @@ -40,7 +41,7 @@ let g:lua_tree_show_icons = { \ 'git': 1, \ 'folders': 0, \ 'files': 0, - \} + \ } "If 0, do not show the icons for one of 'git' 'folder' and 'files' "1 by default, notice that if 'files' is 1, it will only display "if nvim-web-devicons is installed and on your runtimepath @@ -66,7 +67,7 @@ let g:lua_tree_bindings = { \ 'paste': 'p', \ 'prev_git_item': '[c', \ 'next_git_item': ']c', - } + \ } " Disable default mappings by plugin " Bindings are enable by default, disabled on any non-zero value @@ -107,7 +108,7 @@ highlight LuaTreeFolderIcon guibg=blue - `` on `..` will cd in the above directory - `` will cd in the directory under the cursor - type `a` to add a file. Adding a directory requires leaving a leading `/` at the end of the path. -> you can add multiple directories by doing foo/bar/baz/f and it will add foo bar and baz directories and f as a file + > you can add multiple directories by doing foo/bar/baz/f and it will add foo bar and baz directories and f as a file - type `r` to rename a file - type `x` to add/remove file/directory to cut clipboard - type `c` to add/remove file/directory to copy clipboard @@ -135,6 +136,7 @@ This plugin is very fast because it uses the `libuv` `scandir` and `scandir_next The Netrw vim plugin is disabled, hence features like `gx` don't work across your windows/buffers. You could use a plugin like [this one](https://github.com/stsewd/gx-extended.vim) if you wish to use that feature. ## Features + - Open file in current buffer or in split with FzF like bindings (``, ``, ``, ``) - File icons with nvim-web-devicons - Syntax highlighting ([exa](https://github.com/ogham/exa) like)