diff options
| author | github-actions <github-actions@github.com> | 2021-11-26 20:55:00 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2021-11-26 20:55:00 +0000 |
| commit | b53f89c16bcc8052aa56d3a903fcad3aaa774041 (patch) | |
| tree | c0d488ad94763b30f0ce4821d04cf1f0d57f3fb9 | |
| parent | docs(bicep): document required filetype autocommand (#1493) (diff) | |
| download | nvim-lspconfig-b53f89c16bcc8052aa56d3a903fcad3aaa774041.tar nvim-lspconfig-b53f89c16bcc8052aa56d3a903fcad3aaa774041.tar.gz nvim-lspconfig-b53f89c16bcc8052aa56d3a903fcad3aaa774041.tar.bz2 nvim-lspconfig-b53f89c16bcc8052aa56d3a903fcad3aaa774041.tar.lz nvim-lspconfig-b53f89c16bcc8052aa56d3a903fcad3aaa774041.tar.xz nvim-lspconfig-b53f89c16bcc8052aa56d3a903fcad3aaa774041.tar.zst nvim-lspconfig-b53f89c16bcc8052aa56d3a903fcad3aaa774041.zip | |
docs: update server_configurations.md
skip-checks: true
| -rw-r--r-- | doc/server_configurations.md | 9 |
1 files changed, 8 insertions, 1 deletions
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" |
