如何使用 Vim Plug 在 NeoVim 中启用 emmet-vim 的自定义设置
我正在使用 nvim 并使用 vim 插件加载 mattn/emmet-vim 。它可以很好地处理所有它应该处理的文件。
然而,对于 Jekyll 的液体文件,我想使用与 html 相同的设置。
由于某种原因,当文件被检测为“液体”时,emmet 根本不起作用,没有建议,键绑定没有任何建议,
如何让 emmet 处理液体文件?
我的 .vimrc 有以下内容(例外):
3 call plug#begin('~/.vim/plugged')
4
5 Plug 'morhetz/gruvbox'
6 Plug 'junegunn/fzf', {'do': { ->fzf#install()}}
7 Plug 'junegunn/fzf.vim'
8 Plug 'neoclide/coc.nvim', {'branch': 'release'}
9 Plug 'scrooloose/nerdtree'
10 Plug 'Xuyuanp/nerdtree-git-plugin'
11 Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
12 Plug 'vim-airline/vim-airline'
13 Plug 'vim-airline/vim-airline-themes'
14 Plug 'preservim/nerdcommenter'
15 Plug 'tpope/vim-fugitive'
16 Plug 'ryanoasis/vim-devicons'
17 Plug 'pangloss/vim-javascript'
18 Plug 'leafgarland/typescript-vim'
19 Plug 'maxmellon/vim-jsx-pretty'
20 Plug 'mattn/emmet-vim'
21 Plug 'tpope/vim-liquid'
22
23 call plug#end()
....
49 " EMMET-VIM {{{
50 let g:user_emmet_settings = {
51 \ 'liquid' : {
52 \ 'extends' : 'html',
53 \ },
54 \}
55 "}}}
I'm using nvim and have loaded mattn/emmet-vim with vim plug. It works well with all files it's supposed to.
However, for Jekyll's liquid files I'd like to use the same setup as html.
For some reason, when the file is detected as "liquid" emmet simply does not work, no suggestions, keybindings dont suggest anything,
How can I get emmet to work with liquid files?
My .vimrc has the following (excepts):
3 call plug#begin('~/.vim/plugged')
4
5 Plug 'morhetz/gruvbox'
6 Plug 'junegunn/fzf', {'do': { ->fzf#install()}}
7 Plug 'junegunn/fzf.vim'
8 Plug 'neoclide/coc.nvim', {'branch': 'release'}
9 Plug 'scrooloose/nerdtree'
10 Plug 'Xuyuanp/nerdtree-git-plugin'
11 Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
12 Plug 'vim-airline/vim-airline'
13 Plug 'vim-airline/vim-airline-themes'
14 Plug 'preservim/nerdcommenter'
15 Plug 'tpope/vim-fugitive'
16 Plug 'ryanoasis/vim-devicons'
17 Plug 'pangloss/vim-javascript'
18 Plug 'leafgarland/typescript-vim'
19 Plug 'maxmellon/vim-jsx-pretty'
20 Plug 'mattn/emmet-vim'
21 Plug 'tpope/vim-liquid'
22
23 call plug#end()
....
49 " EMMET-VIM {{{
50 let g:user_emmet_settings = {
51 \ 'liquid' : {
52 \ 'extends' : 'html',
53 \ },
54 \}
55 "}}}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论