mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
add marksman
This commit is contained in:
committed by
mattn
parent
d4d5a5e344
commit
4b00cce39b
3
installer/install-marksman.cmd
Normal file
3
installer/install-marksman.cmd
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
curl -L -o marksman.exe "https://github.com/artempyanykh/marksman/releases/latest/download/marksman.exe"
|
||||
16
installer/install-marksman.sh
Normal file
16
installer/install-marksman.sh
Normal 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"
|
||||
@@ -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
14
settings/marksman.vim
Normal 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
|
||||
Reference in New Issue
Block a user