From 9a5a3ebd63b0bf7f8528ed2ca65c8c8bcd2bbeae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 7 May 2024 05:26:31 +0000 Subject: [PATCH] docs: update server_configurations.md skip-checks: true --- doc/server_configurations.md | 40 +++++++++++++++++++++++++++++++++++ doc/server_configurations.txt | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/doc/server_configurations.md b/doc/server_configurations.md index bc073c2607..2f16f946d1 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -160,6 +160,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [mlir_pdll_lsp_server](#mlir_pdll_lsp_server) - [mm0_ls](#mm0_ls) - [mojo](#mojo) +- [motoko_lsp](#motoko_lsp) - [move_analyzer](#move_analyzer) - [mutt_ls](#mutt_ls) - [nelua_lsp](#nelua_lsp) @@ -7132,6 +7133,45 @@ require'lspconfig'.mojo.setup{} ``` +## motoko_lsp + +https://github.com/dfinity/vscode-motoko + +Language server for the Motoko programming language. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.motoko_lsp.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "motoko-lsp", "--stdio" } + ``` + - `filetypes` : + ```lua + { "motoko" } + ``` + - `init_options` : + ```lua + { + formatter = "auto" + } + ``` + - `root_dir` : + ```lua + root_pattern("dfx.json", ".git") + ``` + - `single_file_support` : + ```lua + true + ``` + + ## move_analyzer https://github.com/move-language/move/tree/main/language/move-analyzer diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index bc073c2607..2f16f946d1 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -160,6 +160,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [mlir_pdll_lsp_server](#mlir_pdll_lsp_server) - [mm0_ls](#mm0_ls) - [mojo](#mojo) +- [motoko_lsp](#motoko_lsp) - [move_analyzer](#move_analyzer) - [mutt_ls](#mutt_ls) - [nelua_lsp](#nelua_lsp) @@ -7132,6 +7133,45 @@ require'lspconfig'.mojo.setup{} ``` +## motoko_lsp + +https://github.com/dfinity/vscode-motoko + +Language server for the Motoko programming language. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.motoko_lsp.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "motoko-lsp", "--stdio" } + ``` + - `filetypes` : + ```lua + { "motoko" } + ``` + - `init_options` : + ```lua + { + formatter = "auto" + } + ``` + - `root_dir` : + ```lua + root_pattern("dfx.json", ".git") + ``` + - `single_file_support` : + ```lua + true + ``` + + ## move_analyzer https://github.com/move-language/move/tree/main/language/move-analyzer