diff options
| author | Tej Chajed <tchajed@gmail.com> | 2023-04-04 23:18:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-05 14:18:10 +0800 |
| commit | de114a68d6d69874b5c9f212cdc76353928772b5 (patch) | |
| tree | 7cf3633447f5c76dc3e5bbf0d277fa474fc73b1d /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-de114a68d6d69874b5c9f212cdc76353928772b5.tar nvim-lspconfig-de114a68d6d69874b5c9f212cdc76353928772b5.tar.gz nvim-lspconfig-de114a68d6d69874b5c9f212cdc76353928772b5.tar.bz2 nvim-lspconfig-de114a68d6d69874b5c9f212cdc76353928772b5.tar.lz nvim-lspconfig-de114a68d6d69874b5c9f212cdc76353928772b5.tar.xz nvim-lspconfig-de114a68d6d69874b5c9f212cdc76353928772b5.tar.zst nvim-lspconfig-de114a68d6d69874b5c9f212cdc76353928772b5.zip | |
fix(dafny): add default cmd for Dafny 4 (#2541)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/dafny.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lua/lspconfig/server_configurations/dafny.lua b/lua/lspconfig/server_configurations/dafny.lua index cbd4bbed..be5e72b3 100644 --- a/lua/lspconfig/server_configurations/dafny.lua +++ b/lua/lspconfig/server_configurations/dafny.lua @@ -2,6 +2,7 @@ local util = require 'lspconfig.util' return { default_config = { + cmd = { 'dafny', 'server' }, filetypes = { 'dfy', 'dafny' }, root_dir = function(fname) util.find_git_ancestor(fname) @@ -10,11 +11,12 @@ return { }, docs = { description = [[ - NeoVim support for the Dafny language server. - Please follow the instructions and compile the language server from source: - https://github.com/dafny-lang/language-server-csharp + Support for the Dafny language server. - Note that there is no default cmd set. You must set it yourself. The recommended way is to use `{"dotnet", "<Path to your language server>"}`. -]], + The default `cmd` uses "dafny server", which works on Dafny 4.0.0+. For + older versions of Dafny, you can compile the language server from source at + [dafny-lang/language-server-csharp](https://github.com/dafny-lang/language-server-csharp) + and set `cmd = {"dotnet", "<Path to your language server>"}`. + ]], }, } |
