add marksman

This commit is contained in:
Yasuhiro Matsumoto
2022-06-20 22:18:42 +09:00
committed by mattn
parent d4d5a5e344
commit 4b00cce39b
4 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
@echo off
curl -L -o marksman.exe "https://github.com/artempyanykh/marksman/releases/latest/download/marksman.exe"

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -e
os=$(uname -s | tr "[:upper:]" "[:lower:]")
case $os in
linux)
platform="linux"
;;
darwin)
platform="macos"
;;
esac
curl -L -o marksman "https://github.com/artempyanykh/marksman/releases/latest/download/marksman-$platform"

View File

@@ -817,6 +817,15 @@
"requires": []
}
],
"markdown": [
{
"command": "marksman",
"url": "https://github.com/artempyanykh/marksman",
"description": "Markdown LSP server providing completion, cross-references, diagnostics, and more.",
"requires": [
]
}
],
"nim": [
{
"command": "nimlsp",

14
settings/marksman.vim Normal file
View File

@@ -0,0 +1,14 @@
augroup vim_lsp_settings_marksman
au!
LspRegisterServer {
\ 'name': 'marksman',
\ 'cmd': {server_info->lsp_settings#get('marksman', 'cmd', [lsp_settings#exec_path('marksman')]+lsp_settings#get('marksman', 'args', ['server']))},
\ 'root_uri':{server_info->lsp_settings#get('marksman', 'root_uri', lsp_settings#root_uri('marksman'))},
\ 'initialization_options': lsp_settings#get('marksman', 'initialization_options', {'diagnostics': 'true'}),
\ 'allowlist': lsp_settings#get('marksman', 'allowlist', ['markdown']),
\ 'blocklist': lsp_settings#get('marksman', 'blocklist', []),
\ 'config': lsp_settings#get('marksman', 'config', lsp_settings#server_config('marksman')),
\ 'workspace_config': lsp_settings#get('marksman', 'workspace_config', {}),
\ 'semantic_highlight': lsp_settings#get('marksman', 'semantic_highlight', {}),
\ }
augroup END