Ⅰ. 插件描述
Css language server extension for coc.nvimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'neoclide/coc-css'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'neoclide/coc-css'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'neoclide/coc-css'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/neoclide/coc-css
Ⅳ. 文档说明
# coc-css
Css language server extension for coc.nvim.
Uses vscode-css-languageservice inside.
Install
In your vim/neovim, run the command:
:CocInstall coc-cssFeatures
Coc has support for all features that vscode-css-languageservice has.
doValidationanalyzes an input string and returns syntax and lint errros.doCompleteprovides completion proposals for a given location.doHoverprovides a hover text for a given location.findDefinitionfinds the definition of the symbol at the given location.findReferencesfinds all references to the symbol at the given location.findDocumentHighlightsfinds all symbols connected to the given location.findDocumentSymbolsprovides all symbols in the given documentdoCodeActionsevaluates code actions for the given location, typically to fix a problem.findColorSymbolsevaluates all color symbols in the given documentdoRenamerenames all symbols connected to the given location.getFoldingRangesreturns folding ranges in the given document.
Configuration options
css.filetypesdefauts to['css', 'less', 'wxss', 'scss'].css.trace.servertrace LSP traffic in output channel.css.execArgvaddexecArgvtochild_process.spawncss.validateenables validation for css files, defaulttrue.css.lint.[rulename]set rule for css lint, to get list of rules, trigger
completion in yourcss-settings.jsonless.validateless.lint.[rulename]same as css, but for less.wxss.validatewxss.lint.[rulename]same as css, but for wxss.scss.validatescss.lint.[rulename]same as css, but for scss.
License
MIT