diff options
| author | Matsu <huhta.matias@gmail.com> | 2023-11-09 03:37:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-09 09:37:59 +0800 |
| commit | 4a74ec3b27b61d13e526ff762b81c1d9b2907f87 (patch) | |
| tree | 1ccbbbb69ae99c71b22518fd9ddc54624b76f187 /lua/lspconfig/server_configurations/custom_elements_ls.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-4a74ec3b27b61d13e526ff762b81c1d9b2907f87.tar nvim-lspconfig-4a74ec3b27b61d13e526ff762b81c1d9b2907f87.tar.gz nvim-lspconfig-4a74ec3b27b61d13e526ff762b81c1d9b2907f87.tar.bz2 nvim-lspconfig-4a74ec3b27b61d13e526ff762b81c1d9b2907f87.tar.lz nvim-lspconfig-4a74ec3b27b61d13e526ff762b81c1d9b2907f87.tar.xz nvim-lspconfig-4a74ec3b27b61d13e526ff762b81c1d9b2907f87.tar.zst nvim-lspconfig-4a74ec3b27b61d13e526ff762b81c1d9b2907f87.zip | |
doc(custom-elements-ls): Update filetypes and docs (#2881)
Diffstat (limited to 'lua/lspconfig/server_configurations/custom_elements_ls.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/custom_elements_ls.lua | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lua/lspconfig/server_configurations/custom_elements_ls.lua b/lua/lspconfig/server_configurations/custom_elements_ls.lua index 61e51a6a..cc2b2ca2 100644 --- a/lua/lspconfig/server_configurations/custom_elements_ls.lua +++ b/lua/lspconfig/server_configurations/custom_elements_ls.lua @@ -4,15 +4,6 @@ return { default_config = { init_options = { hostInfo = 'neovim' }, cmd = { 'custom-elements-languageserver', '--stdio' }, - filetypes = { - 'javascript', - 'javascriptreact', - 'javascript.jsx', - 'typescript', - 'typescriptreact', - 'typescript.tsx', - 'html', - }, root_dir = function(fname) return util.root_pattern 'tsconfig.json'(fname) or util.root_pattern('package.json', 'jsconfig.json', '.git')(fname) @@ -42,12 +33,6 @@ Here's an example that disables type checking in JavaScript files. "node_modules" ] } - -The best way to utilize the Custom Elements Language Server is to enable the [Custom Elements Manifest](https://github.com/webcomponents/custom-elements-manifest)(CEM) in your project by installing -a CEM generator like one provided by [The Open WC Team](https://github.com/open-wc/custom-elements-manifest/tree/master/packages/analyzer). - -Generating a CEM in watch mode will provide you with the best user experience. If your dependencies ship with a Custom Elements Manifest, those will be utilized also. - ``` ]], default_config = { |
