search: add fzf support

* Installs vim-fzf plugin.
* Reformats and updates the README.md

Co-Authored-by: Igor Milhit <igor@milhit.ch>
server
iGor milhit 2020-10-25 17:37:01 +01:00
parent f448e33fe4
commit 14484cc982
Signed by: igor
GPG Key ID: 692D97C3D0228A99
2 changed files with 26 additions and 20 deletions

View File

@ -1,22 +1,29 @@
# My `neovim` setup
Having used `neovim` for a few month, with symlinks for the configuration and the plugins, I want to start a new setup.
Having used `neovim` for a few month, with symlinks for the configuration and
the plugins, I want to start a new setup.
Firstly, I don't use any more `pathogen` for the management of plugins, but `vim-plug` instead. To install `vim-plug` see the [documentation](https://github.com/junegunn/vim-plug/blob/master/README.md#neovim).
Firstly, I don't use any more `pathogen` for the management of plugins, but
`vim-plug` instead. To install and activate `vim-plug` see the
[documentation][1].
I'm using the [nord color scheme][5].
## Requirements
1. `neovim`
2. `git`
3. `nodejs`, `yarn`
1. `git`
1. `nodejs`, `yarn`
1. [ripgrep][2]
1. [The Silver Searcher (`ag`)][3]
## Installation
1. clone the repository
2. create a symlink
3. start `neovim`
4. install the plugins
5. check the requirements
1. Clone the repository.
1. Create a symlink.
1. Check [the requirements][4].
1. Start `neovim`.
1. Install the plugins (`:PlugInstall`).
``` bash
git clone <URL>
@ -25,13 +32,8 @@ nvim
:PlugInstall
```
## Requirements for the plugins used
For `vim-colors-solarized`, a symlink is needed:
``` bash
cd $HOME/neovim/colors #or the dir. where you've clone this repository
ln -s ../plugged/vim-colors-solarized/colors/solarized.vim solarized.vim
```
For `InstantRst`, the python package `instant-rst` is needed. See the [documentation](https://github.com/Rykka/InstantRst#1install).
[1]: https://github.com/junegunn/vim-plug/blob/master/README.md#neovim
[2]: https://github.com/BurntSushi/ripgrep
[3]: https://github.com/ggreer/the_silver_searcher
[4]: /requirements
[5]: https://www.nordtheme.com/ports/vim

View File

@ -10,7 +10,6 @@ Plug 'junegunn/goyo.vim', { 'on': 'Goyo' } " distraction free
Plug 'dhruvasagar/vim-table-mode', { 'on': 'TableModeEnable' }
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' }
Plug 'gu-fan/riv.vim', { 'for': 'rst' } " rst syntax support
Plug 'gu-fan/InstantRst', { 'for': 'rst' } " rst preview
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'jiangmiao/auto-pairs' " pairs autocomplete
@ -35,6 +34,8 @@ Plug 'stsewd/isort.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'vitalk/vim-simple-todo'
" Search
Plug 'jremmen/vim-ripgrep' " Use ripgrep
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()
" Filetype detection
@ -167,6 +168,9 @@ let g:isort_command='isort'
call neomake#configure#automake('nrwi', 500) " autolint
" Should avoid deoplete to slow down the closing process
" au TermClose * call OnTermClose()
" Syntax coloration and color theme
syntax enable
set background=dark