From b53f89c16bcc8052aa56d3a903fcad3aaa774041 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 26 Nov 2021 20:55:00 +0000 Subject: docs: update server_configurations.md skip-checks: true --- doc/server_configurations.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 1a7a95c4..cd28710e 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -374,7 +374,14 @@ Bicep language server can be installed by downloading and extracting a release o Bicep language server requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed. -**By default, bicep language server doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary. +Neovim does not have built-in support for the bicep filetype which is required for lspconfig to automatically launch the language server. + +Filetype detection can be added via an autocmd: +```lua +vim.cmd [[ autocmd BufNewFile,BufRead *.bicep set filetype=bicep ]] +``` + +**By default, bicep language server does not have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary. ```lua local bicep_lsp_bin = "/path/to/bicep-langserver/Bicep.LangServer.dll" -- cgit v1.2.3-70-g09d2