Skip to content

Commit

Permalink
✨feat: json-language-server
Browse files Browse the repository at this point in the history
  • Loading branch information
utubo committed Nov 4, 2023
1 parent b5b1bbc commit 209415b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,19 @@ filetype: ['javascript', 'typescript'],
path: $'typescript-language-server{lq}',
args: ['--stdio'],
}, {
name: 'vimscriptlang',
name: 'vimlang',
filetype: ['vim'],
path: $'vimscript-language-server{lq}',
path: $'vim-language-server{lq}',
args: ['--stdio'],
}, {
name: 'htmllang',
filetype: ['html'],
path: $'html-languageserver{lq}',
args: ['--stdio'],
}, {
name: 'jsonlang',
filetype: ['json'],
path: $'vscode-json-languageserver{lq}',
args: ['--stdio'],
}]
au vimrc VimEnter * call LspOptionsSet(lspOptions)
Expand Down
2 changes: 2 additions & 0 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ $systemPath += ";" + $node_modules
# node_modules
npm install -g typescript-language-server
npm install -g vim-language-server
npm install -g vscode-html-languageserver
npm install -g vscode-json-languageserver

2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ npm install -g npm
# node_modules
npm install -g typescript-language-server
npm install -g vim-language-server
npm install -g vscode-html-languageserver
npm install -g vscode-json-languageserver

14 changes: 12 additions & 2 deletions src/.vimrc.src.vim
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,19 @@ var lspServers = [{
path: $'typescript-language-server{commandExt}',
args: ['--stdio'],
}, {
name: 'vimscriptlang',
name: 'vimlang',
filetype: ['vim'],
path: $'vimscript-language-server{commandExt}',
path: $'vim-language-server{commandExt}',
args: ['--stdio'],
}, {
name: 'htmllang',
filetype: ['html'],
path: $'html-languageserver{commandExt}',
args: ['--stdio'],
}, {
name: 'jsonlang',
filetype: ['json'],
path: $'vscode-json-languageserver{commandExt}',
args: ['--stdio'],
}]
au vimrc VimEnter * call LspOptionsSet(lspOptions)
Expand Down

0 comments on commit 209415b

Please sign in to comment.