Skip to content

Commit

Permalink
Update LSP configs
Browse files Browse the repository at this point in the history
  • Loading branch information
kg8m committed Jan 1, 2020
1 parent 4cc87dc commit e47a3bc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] } },
\ },
\ })
" }}}

Expand All @@ -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"],
\ })
" }}}
Expand Down Expand Up @@ -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"],
\ })
" }}}
Expand Down

0 comments on commit e47a3bc

Please sign in to comment.