Skip to content
Prabir Shrestha edited this page Jan 7, 2018 · 1 revision

Note: Although it is named css language server, it works with less and sass files.

Installing server

npm install -g vscode-css-languageserver-bin

Registering in .vimrc

if executable('css-languageserver')
    au User lsp_setup call lsp#register_server({
        \ 'name': 'css-languageserver',
        \ 'cmd': {server_info->[&shell, &shellcmdflag, 'css-languageserver --stdio']},
        \ 'whitelist': ['css', 'less', 'sass'],
        \ })
endif