aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-06-17 09:59:08 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-06-17 09:59:08 +0000
commita371b662a4a8bc56e8a994531fcc280f30260048 (patch)
treee0fb14b30be6346104bd7c7bb43c39a841e719a2 /doc
parentfeat(glint): add vim.lsp.config support #3911 (diff)
downloadnvim-lspconfig-a371b662a4a8bc56e8a994531fcc280f30260048.tar
nvim-lspconfig-a371b662a4a8bc56e8a994531fcc280f30260048.tar.gz
nvim-lspconfig-a371b662a4a8bc56e8a994531fcc280f30260048.tar.bz2
nvim-lspconfig-a371b662a4a8bc56e8a994531fcc280f30260048.tar.lz
nvim-lspconfig-a371b662a4a8bc56e8a994531fcc280f30260048.tar.xz
nvim-lspconfig-a371b662a4a8bc56e8a994531fcc280f30260048.tar.zst
nvim-lspconfig-a371b662a4a8bc56e8a994531fcc280f30260048.zip
docs: update configs.md
skip-checks: true
Diffstat (limited to 'doc')
-rw-r--r--doc/configs.md56
-rw-r--r--doc/configs.txt46
2 files changed, 102 insertions, 0 deletions
diff --git a/doc/configs.md b/doc/configs.md
index 51adf077..c10f2519 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -117,6 +117,7 @@ Nvim by running `:help lspconfig-all`.
- [gitlab_ci_ls](#gitlab_ci_ls)
- [glasgow](#glasgow)
- [gleam](#gleam)
+- [glint](#glint)
- [glsl_analyzer](#glsl_analyzer)
- [glslls](#glslls)
- [gnls](#gnls)
@@ -4534,6 +4535,61 @@ Default config:
---
+## glint
+
+https://github.com/typed-ember/glint
+https://typed-ember.gitbook.io/glint/
+`glint-language-server` is installed when adding `@glint/core` to your project's devDependencies:
+
+```sh
+npm install @glint/core --save-dev
+yarn add -D @glint/core
+
+This configuration uses the local installation of `glint-language-server`
+(found in the `node_modules` directory of your project).
+
+To use a global installation of `glint-language-server`,
+set the `init_options.glint.useGlobal` to `true`.
+
+vim.lsp.config('glint', {
+ init_options = {
+ glint = {
+ useGlobal = true,
+ },
+ },
+})
+
+Snippet to enable the language server:
+```lua
+vim.lsp.enable('glint')
+```
+
+Default config:
+- `before_init`: [../lsp/glint.lua:25](../lsp/glint.lua#L25)
+- `cmd` :
+ ```lua
+ { "glint-language-server" }
+ ```
+- `filetypes` :
+ ```lua
+ { "html.handlebars", "handlebars", "typescript", "typescript.glimmer", "javascript", "javascript.glimmer" }
+ ```
+- `init_options` :
+ ```lua
+ {
+ glint = {
+ useGlobal = false
+ }
+ }
+ ```
+- `root_markers` :
+ ```lua
+ { ".glintrc.yml", ".glintrc", ".glintrc.json", ".glintrc.js", "glint.config.js", "package.json" }
+ ```
+- `workspace_required` : `true`
+
+---
+
## glsl_analyzer
https://github.com/nolanderc/glsl_analyzer
diff --git a/doc/configs.txt b/doc/configs.txt
index f0ba82ec..58490d07 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt
@@ -3187,6 +3187,52 @@ Default config:
<
------------------------------------------------------------------------------
+glint
+
+https://github.com/typed-ember/glint
+https://typed-ember.gitbook.io/glint/
+`glint-language-server` is installed when adding `@glint/core` to your project's devDependencies:
+
+```sh
+npm install @glint/core --save-dev
+yarn add -D @glint/core
+
+This configuration uses the local installation of `glint-language-server`
+(found in the `node_modules` directory of your project).
+
+To use a global installation of `glint-language-server`,
+set the `init_options.glint.useGlobal` to `true`.
+
+vim.lsp.config('glint', {
+ init_options = {
+ glint = {
+ useGlobal = true,
+ },
+ },
+})
+
+Snippet to enable the language server: >lua
+ vim.lsp.enable('glint')
+
+
+Default config:
+- before_init (use "gF" to view): ../lsp/glint.lua:25
+- cmd: >lua
+ { "glint-language-server" }
+- filetypes: >lua
+ { "html.handlebars", "handlebars", "typescript", "typescript.glimmer", "javascript", "javascript.glimmer" }
+- init_options: >lua
+ {
+ glint = {
+ useGlobal = false
+ }
+ }
+- root_markers: >lua
+ { ".glintrc.yml", ".glintrc", ".glintrc.json", ".glintrc.js", "glint.config.js", "package.json" }
+- `workspace_required` : `true`
+<
+
+------------------------------------------------------------------------------
glsl_analyzer
https://github.com/nolanderc/glsl_analyzer