summaryrefslogtreecommitdiff
path: root/nvim/lsp/motoko_lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lsp/motoko_lsp.lua')
-rwxr-xr-xnvim/lsp/motoko_lsp.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/nvim/lsp/motoko_lsp.lua b/nvim/lsp/motoko_lsp.lua
new file mode 100755
index 0000000..f479e2d
--- /dev/null
+++ b/nvim/lsp/motoko_lsp.lua
@@ -0,0 +1,13 @@
+---@brief
+---
+--- https://github.com/dfinity/vscode-motoko
+---
+--- Language server for the Motoko programming language.
+return {
+ cmd = { 'motoko-lsp', '--stdio' },
+ filetypes = { 'motoko' },
+ root_markers = { 'dfx.json', '.git' },
+ init_options = {
+ formatter = 'auto',
+ },
+}