Skip to content
Open
Show file tree
Hide file tree
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
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ Below is a list of supported language servers for configuration with `nvim-lspco
- [svelte](#svelte)
- [tailwindcss](#tailwindcss)
- [terraformls](#terraformls)
- [ts_ls](#ts_ls)
- [tsserver](#tsserver)
- [vuels](#vuels)
- [yamlls](#yamlls)
Expand Down Expand Up @@ -500,6 +501,21 @@ require'lspconfig'.terraformls.setup {
}
```

### ts_ls

https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ts_ls

```lua
require'lspconfig'.ts_ls.setup {
before_init = function(params)
params.processId = vim.NIL
end,
cmd = require'lspcontainers'.command('ts_ls'),
root_dir = require'lspconfig/util'.root_pattern(".git", vim.fn.getcwd()),
...
}
```

### tsserver

https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#tsserver
Expand Down
1 change: 1 addition & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ local function setup_languages()
"svelte",
"tailwindcss",
"terraformls",
"ts_ls",
"tsserver",
"vuels",
"yamlls"
Expand Down
1 change: 1 addition & 0 deletions lua/lspcontainers/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ local supported_languages = {
svelte = { image = "docker.io/lspcontainers/svelte-language-server" },
tailwindcss = { image = "docker.io/lspcontainers/tailwindcss-language-server" },
terraformls = { image = "docker.io/lspcontainers/terraform-ls" },
ts_ls = { image = "docker.io/lspcontainers/typescript-language-server" },
tsserver = { image = "docker.io/lspcontainers/typescript-language-server" },
vuels = { image = "docker.io/lspcontainers/vue-language-server" },
yamlls = { image = "docker.io/lspcontainers/yaml-language-server" },
Expand Down