mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2025-12-24 15:01:00 +01:00
20 lines
716 B
Lua
20 lines
716 B
Lua
---@brief
|
|
---
|
|
--- https://github.com/microsoft/compose-language-service
|
|
--- This project contains a language service for Docker Compose.
|
|
---
|
|
--- `compose-language-service` can be installed via `npm`:
|
|
---
|
|
--- ```sh
|
|
--- npm install @microsoft/compose-language-service
|
|
--- ```
|
|
---
|
|
--- Note: If the docker-compose-langserver doesn't startup when entering a `docker-compose.yaml` file, make sure that the filetype is `yaml.docker-compose`. You can set with: `:set filetype=yaml.docker-compose`.
|
|
|
|
---@type vim.lsp.Config
|
|
return {
|
|
cmd = { 'docker-compose-langserver', '--stdio' },
|
|
filetypes = { 'yaml.docker-compose' },
|
|
root_markers = { 'docker-compose.yaml', 'docker-compose.yml', 'compose.yaml', 'compose.yml' },
|
|
}
|