diff options
| author | Martin Sigloch <f0i.github@projects.f0i.de> | 2024-05-07 07:26:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-07 13:26:18 +0800 |
| commit | 705d36650da34cbedba6a44c5e809b9b033fe3bd (patch) | |
| tree | d7f06340f18dd976986e0ec054f1cd65e36acb55 | |
| parent | docs: update README with default map changes (#3139) (diff) | |
| download | nvim-lspconfig-705d36650da34cbedba6a44c5e809b9b033fe3bd.tar nvim-lspconfig-705d36650da34cbedba6a44c5e809b9b033fe3bd.tar.gz nvim-lspconfig-705d36650da34cbedba6a44c5e809b9b033fe3bd.tar.bz2 nvim-lspconfig-705d36650da34cbedba6a44c5e809b9b033fe3bd.tar.lz nvim-lspconfig-705d36650da34cbedba6a44c5e809b9b033fe3bd.tar.xz nvim-lspconfig-705d36650da34cbedba6a44c5e809b9b033fe3bd.tar.zst nvim-lspconfig-705d36650da34cbedba6a44c5e809b9b033fe3bd.zip | |
feat: add motoko-lsp support (#3140)
| -rw-r--r-- | lua/lspconfig/server_configurations/motoko_lsp.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/motoko_lsp.lua b/lua/lspconfig/server_configurations/motoko_lsp.lua new file mode 100644 index 00000000..c0f6a351 --- /dev/null +++ b/lua/lspconfig/server_configurations/motoko_lsp.lua @@ -0,0 +1,23 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'motoko-lsp', '--stdio' }, + filetypes = { 'motoko' }, + root_dir = util.root_pattern('dfx.json', '.git'), + init_options = { + formatter = 'auto', + }, + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/dfinity/vscode-motoko + +Language server for the Motoko programming language. + ]], + default_config = { + root_dir = [[root_pattern("dfx.json", ".git")]], + }, + }, +} |
