Add LSP config for YAML and TOML
This commit is contained in:
parent
4547cf6c85
commit
f77c1d90aa
1 changed files with 21 additions and 0 deletions
|
@ -17,6 +17,14 @@ const lspServers = [
|
||||||
install: 'brew install lua-language-server',
|
install: 'brew install lua-language-server',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name: 'taplo',
|
||||||
|
filetype: 'toml',
|
||||||
|
path: '/usr/local/bin/taplo',
|
||||||
|
args: ['lsp', 'stdio'],
|
||||||
|
install: 'brew install taplo',
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'tilt-lsp',
|
name: 'tilt-lsp',
|
||||||
filetype: 'bzl',
|
filetype: 'bzl',
|
||||||
|
@ -67,10 +75,23 @@ const lspServers = [
|
||||||
args: ['--stdio'],
|
args: ['--stdio'],
|
||||||
install: 'npm install -g vim-language-server',
|
install: 'npm install -g vim-language-server',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name: 'yaml-language-server',
|
||||||
|
filetype: 'yaml',
|
||||||
|
path: expand('~/.local/bin/yaml-language-server'),
|
||||||
|
args: ['--stdio'],
|
||||||
|
workspaceConfig: {yaml: {
|
||||||
|
format: {enable: true, singleQuote: true},
|
||||||
|
schemaStore: {enable: true, url: 'https://www.schemastore.org/api/json/catalog.json'},
|
||||||
|
}},
|
||||||
|
install: 'npm install -g yaml-language-server',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const lspOptions = {
|
const lspOptions = {
|
||||||
aleSupport: true,
|
aleSupport: true,
|
||||||
|
ignoreMissingServer: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
command! -nargs=0 -bar LspInstall Install()
|
command! -nargs=0 -bar LspInstall Install()
|
||||||
|
|
Loading…
Reference in a new issue