Skip to content

Update ts_ls.lua to include instructions for ember support #3851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions lsp/ts_ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,34 @@
--- Use the `:LspTypescriptSourceAction` command to see "whole file" ("source") code-actions such as:
--- - organize imports
--- - remove unused code
---
--- ### Ember support
---
--- ```lua
--- vim.lsp.config('ts_ls', {
--- init_options = {
--- plugins = {
--- {
--- name = "@glint/tsserver-plugin",
--- location = "/your/path/to/@glint/tsserver-plugin",
--- languages = {"javascript", "typescript", "typescript.glimmer", "javascript.glimmer"},
--- },
--- },
--- },
--- filetypes = {
--- "javascript",
--- "typescript",
--- "javascript.glimmer",
--- "typescript.glimmer"
--- },
--- })
--- ```
--- `location` MUST be defined. If the plugin is installed in `node_modules`,
--- `location` can have any value.
---
--- `languages` must include `typescript.glimmer` and `javascript.glimmer` even if it is listed in `filetypes`.
---
--- `filetypes` is extended here to include the gjs and gts filetype names.
---
--- ### Vue support
---
Expand Down
Loading