Add JSON language server using my own SchemaStore.vim

This commit is contained in:
Danielle McLean 2023-10-10 22:15:36 +11:00
parent d2e0026618
commit 2595cf03db
Signed by: 00dani
GPG key ID: 52C059C3B22A753E
2 changed files with 15 additions and 0 deletions

View file

@ -76,6 +76,19 @@ const lspServers = [
install: 'npm install -g vim-language-server', install: 'npm install -g vim-language-server',
}, },
{
name: 'vscode-json-language-server',
filetype: ['json', 'jsonc'],
path: expand('~/.local/bin/vscode-json-language-server'),
args: ['--stdio'],
workspaceConfig: {json: {
format: {enable: true},
validate: {enable: true},
schemas: g:SchemaStore#Schemata(),
}},
install: 'npm install -g vscode-langservers-extracted',
},
{ {
name: 'yaml-language-server', name: 'yaml-language-server',
filetype: 'yaml', filetype: 'yaml',

View file

@ -42,7 +42,9 @@ minpac#add('tpope/vim-unimpaired')
minpac#add('wincent/loupe') minpac#add('wincent/loupe')
minpac#add('wincent/terminus') minpac#add('wincent/terminus')
minpac#add('w0rp/ale') minpac#add('w0rp/ale')
minpac#add('yegappan/lsp') minpac#add('yegappan/lsp')
minpac#add('00dani/SchemaStore.vim')
minpac#add('vim-airline/vim-airline') minpac#add('vim-airline/vim-airline')
minpac#add('vim-airline/vim-airline-themes') minpac#add('vim-airline/vim-airline-themes')