Update README.md

This commit is contained in:
hrsh7th
2021-08-23 00:29:25 +09:00
parent f3a5491894
commit faf3fec703

View File

@@ -36,6 +36,7 @@ The `nvim-cmp` sources can be found in [here](https://github.com/topics/nvim-cmp
```viml ```viml
Plug 'hrsh7th/nvim-cmp' Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-buffer' Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-nvim-lua'
``` ```
Then setup configuration. Then setup configuration.
@@ -74,10 +75,10 @@ lua <<EOF
} }
EOF EOF
" Setup buffer configuration " Setup buffer configuration (nvim-lua source only enables in Lua filetype).
autocmd FileType markdown lua require'cmp'.setup.buffer { autocmd FileType lua lua require'cmp'.setup.buffer {
\ sources = { \ sources = {
\ { name = 'buffer' }, \ { name = 'nvim_lua' },
\ }, \ },
\ } \ }
``` ```