From e47a3bcc59464240ea545848cd4a1253176230cd Mon Sep 17 00:00:00 2001 From: kg8m Date: Thu, 2 Jan 2020 00:07:03 +0900 Subject: [PATCH] Update LSP configs --- .vimrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 42cf940f..25c37e56 100644 --- a/.vimrc +++ b/.vimrc @@ -688,7 +688,13 @@ if s:RegisterPlugin("kg8m/vim-lsp") " {{{ call s:RegisterLSP(#{ \ name: "css-languageserver", \ cmd: { server_info -> [&shell, &shellcmdflag, "css-languageserver --stdio"] }, - \ whitelist: ["css", "sass"], + \ whitelist: ["css", "less", "sass", "scss"], + \ workspace_config: #{ + \ css: #{ linkt: #{ validProperties: [] } }, + \ less: #{ linkt: #{ validProperties: [] } }, + \ sass: #{ linkt: #{ validProperties: [] } }, + \ scss: #{ linkt: #{ validProperties: [] } }, + \ }, \ }) " }}} @@ -709,6 +715,7 @@ if s:RegisterPlugin("kg8m/vim-lsp") " {{{ call s:RegisterLSP(#{ \ name: "html-languageserver", \ cmd: { server_info -> [&shell, &shellcmdflag, "html-languageserver --stdio"] }, + \ initialization_options: #{ embeddedLanguages: #{ css: 1, html: 1 } }, \ whitelist: ["html"], \ }) " }}} @@ -749,6 +756,7 @@ if s:RegisterPlugin("kg8m/vim-lsp") " {{{ call s:RegisterLSP(#{ \ name: "vim-language-server", \ cmd: { server_info -> [&shell, &shellcmdflag, "vim-language-server --stdio"] }, + \ initialization_options: #{ vimruntime: $VIMRUNTIME, runtimepath: &runtimepath }, \ whitelist: ["vim"], \ }) " }}}