diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-11-26 15:54:42 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-26 15:54:42 -0500 |
| commit | 6269429c6565916db458fbf6920a0d3a5c6ddeea (patch) | |
| tree | ba48be501b0ad8f8bd230b31de6897d196736aaf /lua/lspconfig/server_configurations/bicep.lua | |
| parent | fix(eslint): match opts to sync request (#1492) (diff) | |
| download | nvim-lspconfig-6269429c6565916db458fbf6920a0d3a5c6ddeea.tar nvim-lspconfig-6269429c6565916db458fbf6920a0d3a5c6ddeea.tar.gz nvim-lspconfig-6269429c6565916db458fbf6920a0d3a5c6ddeea.tar.bz2 nvim-lspconfig-6269429c6565916db458fbf6920a0d3a5c6ddeea.tar.lz nvim-lspconfig-6269429c6565916db458fbf6920a0d3a5c6ddeea.tar.xz nvim-lspconfig-6269429c6565916db458fbf6920a0d3a5c6ddeea.tar.zst nvim-lspconfig-6269429c6565916db458fbf6920a0d3a5c6ddeea.zip | |
docs(bicep): document required filetype autocommand (#1493)
Co-authored-by: Johan HÃ¥kansson <jhakanzon@gmail.com>
Diffstat (limited to 'lua/lspconfig/server_configurations/bicep.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/bicep.lua | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lua/lspconfig/server_configurations/bicep.lua b/lua/lspconfig/server_configurations/bicep.lua index 298f0f48..1ec70323 100644 --- a/lua/lspconfig/server_configurations/bicep.lua +++ b/lua/lspconfig/server_configurations/bicep.lua @@ -7,7 +7,7 @@ return { init_options = {}, }, docs = { - description = [[ + description = [=[ https://github.com/azure/bicep Bicep language server @@ -15,7 +15,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" @@ -32,7 +39,7 @@ To download the latest release and place in /usr/local/bin/bicep-langserver: && rm -rf /usr/local/bin/bicep-langserver \ && unzip -d /usr/local/bin/bicep-langserver bicep-langserver.zip) ``` -]], +]=], default_config = { root_dir = [[util.find_git_ancestor]], }, |
