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 # 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 ## Requirements
1. `neovim` 1. `neovim`
2. `git` 1. `git`
3. `nodejs`, `yarn` 1. `nodejs`, `yarn`
1. [ripgrep][2]
1. [The Silver Searcher (`ag`)][3]
## Installation ## Installation
1. clone the repository 1. Clone the repository.
2. create a symlink 1. Create a symlink.
3. start `neovim` 1. Check [the requirements][4].
4. install the plugins 1. Start `neovim`.
5. check the requirements 1. Install the plugins (`:PlugInstall`).
``` bash ``` bash
git clone <URL> git clone <URL>
@ -25,13 +32,8 @@ nvim
:PlugInstall :PlugInstall
``` ```
## Requirements for the plugins used [1]: https://github.com/junegunn/vim-plug/blob/master/README.md#neovim
[2]: https://github.com/BurntSushi/ripgrep
For `vim-colors-solarized`, a symlink is needed: [3]: https://github.com/ggreer/the_silver_searcher
[4]: /requirements
``` bash [5]: https://www.nordtheme.com/ports/vim
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).

View File

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