summaryrefslogtreecommitdiff
path: root/nvim/lsp/custom_elements_ls.lua
diff options
context:
space:
mode:
authoranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
committeranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
commitb7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch)
tree366a68240fbc9da6b1d567bd6c46d1350ad814de /nvim/lsp/custom_elements_ls.lua
Nixos
Diffstat (limited to 'nvim/lsp/custom_elements_ls.lua')
-rwxr-xr-xnvim/lsp/custom_elements_ls.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/nvim/lsp/custom_elements_ls.lua b/nvim/lsp/custom_elements_ls.lua
new file mode 100755
index 0000000..59acf70
--- /dev/null
+++ b/nvim/lsp/custom_elements_ls.lua
@@ -0,0 +1,30 @@
+---@brief
+---
+--- https://github.com/Matsuuu/custom-elements-language-server
+---
+--- `custom-elements-languageserver` depends on `typescript`. Both packages can be installed via `npm`:
+--- ```sh
+--- npm install -g typescript custom-elements-languageserver
+--- ```
+--- To configure typescript language server, add a
+--- [`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) or
+--- [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to the root of your
+--- project.
+--- Here's an example that disables type checking in JavaScript files.
+--- ```json
+--- {
+--- "compilerOptions": {
+--- "module": "commonjs",
+--- "target": "es6",
+--- "checkJs": false
+--- },
+--- "exclude": [
+--- "node_modules"
+--- ]
+--- }
+--- ```
+return {
+ init_options = { hostInfo = 'neovim' },
+ cmd = { 'custom-elements-languageserver', '--stdio' },
+ root_dir = { 'tsconfig.json', 'package.json', 'jsconfig.json', '.git' },
+}